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

Expose build-properties flag #279

Open
ianfixes opened this issue Jan 29, 2021 · 0 comments
Open

Expose build-properties flag #279

ianfixes opened this issue Jan 29, 2021 · 0 comments
Labels
backend enhancement New feature or request

Comments

@ianfixes
Copy link
Collaborator

ianfixes commented Jan 29, 2021

via arduino/arduino-cli#1044

./arduino-cli compile -b arduino:avr:uno --build-property="build.extra_flags=\"-DMY_DEFINE=\"hello world\"\"" /home/user/Arduino/MySketch

This should probably appear in the config as a new entry build_properties

compile:
  build_properties:
    - "build.extra_flags=\"-DMY_DEFINE=\"hello world\"\""
    - "build.extra_flags=-DPIN=2 \"-DMY_DEFINE=\"hello world\"\""
    - build.extra_flags=-DPIN=2
    - "compiler.cpp.extra_flags=\"-DMY_DEFINE=\"hello world\"\"" 
@ianfixes ianfixes added enhancement New feature or request backend labels Jan 29, 2021
@ianfixes ianfixes added this to the arduino-cli 0.14 milestone Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant