Tools: Pass ENABLE_SCRIPTING into the system

This commit is contained in:
Michael du Breuil 2018-09-27 15:00:17 -07:00 committed by Andrew Tridgell
parent f2a31866aa
commit 17103623eb
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,11 @@ class Board:
'-Werror=unused-result', '-Werror=unused-result',
] ]
if cfg.options.enable_scripting:
env.DEFINES.update(
ENABLE_SCRIPTING = 'TRUE',
)
if 'clang' in cfg.env.COMPILER_CC: if 'clang' in cfg.env.COMPILER_CC:
env.CFLAGS += [ env.CFLAGS += [
'-fcolor-diagnostics', '-fcolor-diagnostics',