diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2020-10-21 04:21:42 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-22 03:16:01 +0000 |
commit | a6b9b75aed2649cfed320d6c593d1d3228f1293a (patch) | |
tree | 623a70d16908663eaf1bab87af581d91285280ef /site_scons | |
parent | 9484c61ce65463aa35614081fa4eeaf53680d733 (diff) | |
download | mongo-a6b9b75aed2649cfed320d6c593d1d3228f1293a.tar.gz |
SERVER-34484 added out of tree support for idl generation.
(cherry picked from commit f7308b157e496f24c017c0face999a66390a65cc)
Diffstat (limited to 'site_scons')
-rwxr-xr-x | site_scons/site_tools/idl_tool.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/site_scons/site_tools/idl_tool.py b/site_scons/site_tools/idl_tool.py index 0e9c2e17281..1b180b21083 100755 --- a/site_scons/site_tools/idl_tool.py +++ b/site_scons/site_tools/idl_tool.py @@ -102,13 +102,16 @@ def generate(env): idlc = idlc_mod env["IDLC"] = "$PYTHON buildscripts/idl/idlc.py" - base_dir = env.Dir("$BUILD_ROOT/$VARIANT_DIR").path + base_dir = env.Dir("$BUILD_DIR").path env["IDLCFLAGS"] = [ "--include", "src", "--base_dir", base_dir, "--target_arch", "$TARGET_ARCH", ] env["IDLCCOM"] = "$IDLC $IDLCFLAGS --header ${TARGETS[1]} --output ${TARGETS[0]} $SOURCES" + env["IDLCCOMSTR"] = ("Generating ${TARGETS[0]}" + if not env.get("VERBOSE", "").lower() in ['true', '1'] + else None) env["IDLCSUFFIX"] = ".idl" IDL_GLOBAL_DEPS = env.Glob("#buildscripts/idl/*.py") + env.Glob( |