Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top