The SPARK compiler definition is now available on the IDE and CLI compile servers. This definition allows conditional compiling much like what is done with Arduino (eg. #if ARDUINO >= 100)). Typical use is as follows:
#if defined (SPARK)
// Spark code code goes here
#else
// Arduino code goes here
#endif
That was my bad, the build farm has a separate smaller makefile for user-projects, and it didn’t inherit the flags from that firmware makefile change from a few weeks ago.