Skip to content
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
InventoCasa opened this issue Jun 28, 2018 · 1 comment
Closed

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

InventoCasa opened this issue Jun 28, 2018 · 1 comment
Labels
Milestone

Comments

@InventoCasa
Copy link

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 added a commit that referenced this issue Jun 30, 2018
* 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
Copy link
Member

Please re-test with pio upgrade --dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants