-
-
Notifications
You must be signed in to change notification settings - Fork 398
[Windows] Sketch compilation and core cache cannot live in different partitions #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @KermitRN , If using only the CLI it can be overridden using @cmaglie which approach do you prefer? The first one would make the cli more robust but adding the config to the ide preference should be faster and easier. |
Thanks for your quick response. |
This should be fixed in the CLI, I've moved the issue. |
If a certain buildpath is configured by adding "build.path=X:\directory_of_choice" to preferences.txt it may lead to a problem for the compiler:
In SDK versions before 1.8.10 it was possible to select "Aggressively cache compiled core" via a checkbox on File/Preferences. When enabled then core was stored in local temp directory which normally is placed on C:. In this case the configurable setting for build.path has to be on C: too. In any other case we get a compiler error like:
"can't make C:\Users\username\AppData\Local\Temp\arduino_cache_37519\core\core_bf266dfb68e28495ab12fdd4a1409781.a relative to X:\ArduinoBuild"
If caching core is disabled or build.path is on the same drive as default temp then everything works fine.
Since v1.8.10 the checkbox is not longer available. The feature can be enabled/disabled via compiler.cache_core=true/false in preferences,txt.
=> It seems that core is always build in default path while scetch is build in configurable path. Would it be possible to use configured build.path for core compilation too? Or is there any reason for using the present method?
The text was updated successfully, but these errors were encountered: