Hi,
I could not find the info on the arduino site. How can I set compile switches in the Arduino IDE on mac? I am familiar with editing config files but do not know where to look.
Thanks, Hamburger
compile switches in Arduino IDE on mac?
Re: compile switches in Arduino IDE on mac?
Hi Hamburger,
I have impression, that compiller/linker switches are hardcoded in Arduino IDE (in src\Compiler.java).
regards,
ziss_dm
I have impression, that compiller/linker switches are hardcoded in Arduino IDE (in src\Compiler.java).
Code: Select all
List baseCommandCompilerCPP = new ArrayList(Arrays.asList(new String[] {
avrBasePath + "avr-g++",
"-c", // compile, don't link
"-g", // include debugging info (so errors include line numbers)
"-Os", // optimize for size
"-w", // surpress all warnings
"-MMD", // output dependancy info
"-fno-exceptions",
"-ffunction-sections", // place each function in its own section
"-fdata-sections",
"-mmcu=" + boardPreferences.get("build.mcu"),
"-DF_CPU=" + Base.getBoardMenuPreference("build.f_cpu"),
"-DARDUINO=" + Base.REVISION,
}));
regards,
ziss_dm