-
Notifications
You must be signed in to change notification settings - Fork 638
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
PIO: sketch build flags and compilation time #1896
Comments
@Niek ee6ee89#r35457680
Feels like a bug (...will link the upstream issue...). |
Rough draft: Secure client is failing as expected. |
Nice approach! It's failing but with a different error ;)
It also shouldn't fail because you added the |
At that commit there was no mqtt.ino fix present, it is there now though -> #1943 |
BUILD_CACHE does indeed work as intended. In case global BUILD_FLAGS stay the same, instead of "Compiling" it will "Retrieve" each Core's or libraries object files from cache. Speed-up is on par with using custom.h substitution, 10...15seconds instead of ~1 minute per env Releases on the other hand only need a single build flag in most cases and build cache option could be provided via environment. |
Is your feature request related to a problem? Please describe.
pio run -e nodemcu-lolin
compiles framework + libraries + sketch the very first timerun
rebuilds only the sketch. any changes to the sketch keep framework + libraries .o cached in.pio/build/nodemcu-lolin/*
.pio/libdeps/nodemcu-lolin/*
source changes, build notices this too, rebuilding library objectsbuild_flags
arguments change, framework + libraries are rebuilt againDescribe the solution you'd like
2 additional configuration options to add:
https://docs.platformio.org/en/latest/projectconf/section_env_build.html#src-build-flags
PLATFORMIO_SRC_BUILD_FLAGS is an alternative to the PLATFORMIO_BUILD_FLAGS
If feels like board flags and every other espurna option should be provided via those instead of global build_flags. Unless, if these are for external configuration (like no EEPROM global for framework, pubsubclient library max packet size, etc..)
https://docs.platformio.org/en/latest/projectconf/section_platformio.html#build-cache-dir
Therefore, check if similar boards can be combined under those conditions.
Also check if this can be used in travis release process
Describe alternatives you've considered
This should still apply under v2 / #1876
Additional context
The text was updated successfully, but these errors were encountered: