smorra
1
I want to pass several defines to the compiler during compilation.
For example:
#define ENABLE_SSL 1
I know from C/CPP that these defines are normally set in the Makefile like this:
CPPFLAGS = -DENABLE_SSL
These defines are then passed to every source file during compilation.
(Even source files which are not my own.)
Is this possible with the Arduino IDE?
Please don't tell me to set the defines in my source code.
I'm looking for a solution to set the defines in the IDE or in a configuration/make file.
Juraj
2
pert
3
You can also do it via the --pref option of the Arduino IDE's command line:
arduino --pref compiler.cpp.extra_flags=-DENABLE_SSL
Will set it for all C++ files, including the .ino/.pde files of the sketch. There is also a property for C files: compiler.c.extra_flags