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?

有帮助吗?

解决方案

I believe you want the CPPDEFINES construction variable. See the SCons documentation page for some more details, under CPPDEFINES.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top