Last active
December 14, 2015 10:38
-
-
Save johnfredcee/5073173 to your computer and use it in GitHub Desktop.
Another Scons / Flymake build target
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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