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

Command Line -D defines #6344

Closed
soundstorm opened this issue Jun 2, 2017 · 1 comment
Closed

Command Line -D defines #6344

soundstorm opened this issue Jun 2, 2017 · 1 comment
Labels
Component: CLI The Arduino IDE's command line interface Component: Compilation Related to compilation of Arduino sketches

Comments

@soundstorm
Copy link

It would be nice for automatic builds to have a -D option like directly with gcc to set defines. Currently it just yields that only a single sketch should be provided.

@per1234 per1234 added Component: CLI The Arduino IDE's command line interface Component: Compilation Related to compilation of Arduino sketches labels Jul 9, 2017
@per1234
Copy link
Collaborator

per1234 commented Jul 9, 2017

It is already possible. Just add:

--pref build.extra_flags=-DFOO_BAR

replacing FOO_BAR with the name of the macro you want to define.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: CLI The Arduino IDE's command line interface Component: Compilation Related to compilation of Arduino sketches
Projects
None yet
Development

No branches or pull requests

2 participants