8000 Changing buildPreferences in arduino.json are not applied if custom output folder is used · Issue #61 · vscode-arduino/vscode-arduino · GitHub
[go: up one dir, main page]

Skip to content

Changing buildPreferences in arduino.json are not applied if custom output folder is used #61

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

Closed
beegee-tokyo opened this issue Jan 18, 2025 · 0 comments

Comments

@beegee-tokyo
Copy link

I am defining several compiler flags in my arduino.json:

...
    "buildPreferences": [
        [
            "compiler.cpp.extra_flags",
            "-DMY_DEBUG=1 -DSW_VERSION_0=1 -DSW_VERSION_1=1 -DSW_VERSION_2=0"
        ]
    ],
...

But the defines for MY_DEBUG, SW_VERSION_0, SW_VERSION_1, SW_VERSION_2, are not changed in the output folders compile_commands.json file.
I have to delete the output folder to get the changes in arduino.json being copied to compile_commands.json.

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

No branches or pull requests

1 participant
0