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

Not possible to remove -fno-rtti from build flags #1712

Closed
Henry0191 opened this Issue Jun 28, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Henry0191

Henry0191 commented Jun 28, 2018

Operating system:
Windows 10, using Atom with PlatformIO Package.

PlatformIO Version (platformio --version):
3.5.3

Description of problem

I tried every information found in the platformio docs to remove the build flag '-fno-rtti' from the build process, because I want to use the typeid() operator of C++.
However, it seems to compile with the flag every time, regardless of what I do.

Compiler output:

error: cannot use typeid with -fno-rtti
Serial.printf(typeid(test).name());

The content of platformio.ini:

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
upload_port = COM11
upload_speed = 921600
build_unflags = -fno-rtti

@ivankravets ivankravets added this to the 3.5.4 milestone Jun 30, 2018

@ivankravets ivankravets added the bug label Jun 30, 2018

ivankravets added a commit that referenced this issue Jun 30, 2018

Merge branch 'hotfix/v3.5.4' into develop
* hotfix/v3.5.4:
  Improve removing of default build flags using `build_unflags` option // Resolve #1712
  Export ``LIBS``, ``LIBPATH``, and ``LINKFLAGS`` data from project dependent libraries to the global build environment
  Replace "env" pattern by "sysenv" in "platformio.ini" // Resolve #1705
@ivankravets

This comment has been minimized.

Member

ivankravets commented Jun 30, 2018

Please re-test with pio upgrade --dev.

ivankravets added a commit that referenced this issue Jul 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment