I believe you want the CPPDEFINES
construction variable. See the SCons documentation page for some more details, under CPPDEFINES
.
makefile define equivalent in Scons
题
In a gcc makefile, you can use the -D flag to specify a define in the compiled program. For example, instead of putting #define SOMETHING, you can specify -DSOMETHING in the makefile. What is the equivalent of this in SCons?
解决方案
不隶属于 StackOverflow