Closed KKoovalsky closed 4 years ago
I was able to normally build pio test -e native around two-three months ago on version 4.3.2a1.
pio test -e native
4.3.2a1
Then I went back to my project and tried to run the native tests with the same setup, but with no luck. The version I have currently is 4.3.4a2.
4.3.4a2
Inside extra_script.py:
extra_script.py
env.Append( CXXFLAGS=[ '-Wall', '-Wextra', '-std=gnu++17', '-Wno-register' ] )
[env] extra_scripts = pre:extra_script.py
[env:native] extra_scripts = pre:extra_script.py
Both 1. and 2. don't work, but when I change CXXFLAGS to CPPFLAGS the flags are used BUT, both for g++ and gcc.
CXXFLAGS
CPPFLAGS
g++
gcc
See the attached logs:
cppflags_defined.log cxxflags_defined.log
Please update native platform by running pio update command and try again. Thanks!
native
pio update
I was able to normally build
pio test -e native
around two-three months ago on version4.3.2a1
.Then I went back to my project and tried to run the native tests with the same setup, but with no luck. The version I have currently is
4.3.4a2
.Inside
extra_script.py
:Both 1. and 2. don'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