compile switches in Arduino IDE on mac?

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

compile switches in Arduino IDE on mac?

Post by Hamburger »

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

ziss_dm
Posts: 529
Joined: Tue Mar 08, 2011 5:26 am

Re: compile switches in Arduino IDE on mac?

Post by ziss_dm »

Hi Hamburger,

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

Post Reply