Setting CXX flags from extra_script.py doesn't work
See original GitHub issueI followed the split C/C++ build flags instructions in order to use the -fpermissive
flag when compiling .cpp files (-fpermissive
is not valid for C).
I created a extra_script.py file containing env.Append(CXXFLAGS=["-fpermissive"])
and added extra_scripts = extra_script.py
to platformio.ini. However, the flag is not used when building .cpp files (I have a src folder with only main.cpp).
I did not test whether this issue is specifically related the espressif32 platform but most likely this is due to the ESP-IDF CMake build system of this platform.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Issue with adding additional CFLAGS path #29968 - GitHub
I would like to know why adding additional include paths via CFLAGS doesn't work for building Pytorch? I haven't root access to install ......
Read more >CFLAGS and gcc at configure not passed in makefile
I'm using "Python 3.2.1 bzipped source tarball" on Linux and it works for me (tm). · Which version of Python is this? Your...
Read more >Issue 9189: Improve CFLAGS handling - Python tracker
Since the user's CFLAGS settings are overridden by Python's OPT settings, it doesn't already work without the patch.
Read more >What is the correct syntax to add CFLAGS and LDFLAGS to ...
The correct way is: ./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib". but this may not work with all configure scripts.
Read more >Setting environ['CFLAGS'] in a distutils setup.py file results in ...
This works in the python 2.4 supplied with RHEL5. There is a regression in RHEL6. When the user specifies CFLAGS like this, some...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @KKoovalsky ! Looks like you’re having a problem with
native
platform. Please open an issue in this repository https://github.com/platformio/platform-native/issues Thanks!It actually doesn’t work. With:
Both doesn’t work, but when I change
CXXFLAGS
toCPPFLAGS
the flags are used BUT, both forg++
andgcc
.See the attached logs:
cppflags_defined.log cxxflags_defined.log