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

[Eclipse] -U in build_flags does not undefine symbols in generated project #2508

Closed
1 task done
dogtopus opened this issue May 17, 2019 · 1 comment
Closed
1 task done

Comments

@dogtopus
Copy link

What kind of issue is this?

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

Configuration

Operating system: Arch Linux

PlatformIO Version (platformio --version): 4.0.0a13

Description of problem

Undefining a previously defined symbol using -U does not undefine it in the generated Eclipse project file.

Steps to Reproduce

  1. Append -DA_SYMBOL -UA_SYMBOL to build_flags
  2. Run pio init --ide eclipse
  3. Open the generated .cproject file and check for Symbols option

Actual Results

A_SYMBOL still shows up.

Expected Results

A_SYMBOL should not appear in the list since it is already undefined

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:uno]
platform = atmelavr
board = uno
framework = arduino
build_flags = -DA_SYMBOL -UA_SYMBOL
@ivankravets
Copy link
Member

Please re-test with the latest PIO Core

pio upgrade --dev

Thanks!

ivankravets added a commit that referenced this issue May 24, 2019
…viously defined via ``-D`` flag // Resolve #2508
@ivankravets ivankravets modified the milestones: 4.0, 3.6.8 May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants