Skip to content

Instantly share code, notes, and snippets.

@johnfredcee
Last active December 14, 2015 10:38
Show Gist options
  • Select an option

  • Save johnfredcee/5073173 to your computer and use it in GitHub Desktop.

Select an option

Save johnfredcee/5073173 to your computer and use it in GitHub Desktop.
Another Scons / Flymake build target
if (ARGUMENTS.get("SYNTAX",0) == 0):
env.Alias("all", env["AQUA_LIBRARIES"])
env.Default("all")
else:
env["CCFLAGS"] = [ "-fsyntax-only"] + env["CCFLAGS"]
object_file = COMMAND_LINE_TARGETS[0]
cpp_file = os.path.splitext(object_file)[0] + ".cpp"
env.Default(env.Command( object_file, cpp_file,
"$CC $CFLAGS $CCFLAGS $_CCCOMCOM " + cpp_file))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment