Hi all,
I’m building a platformio library that needs to remove some flags for the compilation process to run successfully.
Here’s the Build part inside library.json
"build" : {
"unflags": ["-std=gnu++98", "-std=c++11"],
"flags" : [
"-std=gnu++14",
"-D HSE_CLOCK=8000000 -D DEBUG_BUILD"
],
"extraScript": "scripts/gen_configs.py"
},
The compilation fails and if in the script I dump the scons evironment to check if it’s working and I can’t see the BUILD_UNFLAGS field.
If in the platformio.ini of the project that is using the library I add the following line everything is working perfectly:
build_unflags = -std=gnu++98 -std=c++11
is it a bug or am I doing it wrong?