Verification command behind the scenes

Hi,

I'm interested as to what command/s are exactly run behind the scenes when I run

arduino -verify /path/to/file.ino

I'm asking this because I'm working with an Arduino Due board and although I can make that command work and successfully verify my code, it opens the Arduino GUI briefly, and this somewhat annoys my Continuos Integration system since the OS X machine running it is headless. It is a pain to workaround this problem, so I'm just trying to figure out whatever command/s are being run behind the scenes.

So far, I've figured out it uses arm-none-eabi-g++, since that is the compiler for SAM boards like Arduino Due. I've also added all this bunch of arguments:

arm-none-eabi-g++ -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=151 -D_SAM3X8E_ -mthumb -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON -I/some/includes mainProjectFile.cpp

But I get errors like for some low level variables and functions I use, like: error: 'digitalWriteDirect' was not declared in this scope digitalWriteDirect(indpins[iInd], 0);

So I guess there is still something left. I'd really appreciate your help.

Cheers, Raquel

In the IDE turn on verbose output (File/Preferences). Do a verify and you will be able to see exactly what the IDE does. I assume you have a system where you can run the IDE normally.