Add preprocessor define passing to scons build script.

This commit is contained in:
Ari Koivula 2014-04-25 11:44:13 +03:00
parent 4b861deacd
commit cf75937b65

View file

@ -85,6 +85,11 @@ else:
env_x86.MergeFlags('-m32 -O2 -lm')
env_x64.MergeFlags('-m64 -O2 -lm')
preprocessor_defines = ARGUMENTS.get('D', '')
if preprocessor_defines:
for define in preprocessor_defines.split():
env_x86.MergeFlags('-D' + define)
env_x64.MergeFlags('-D' + define)
# Declare build targets.
x86 = SConscript('src/SConscript',