summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2020-10-21 04:21:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-21 21:52:03 +0000
commitf7308b157e496f24c017c0face999a66390a65cc (patch)
tree5cc9b67db4034ae80f66e296ceaa5cc3cc418c07 /site_scons
parentf0576bfbe8bc948366fc9f4b5c10bdc126d3ea64 (diff)
downloadmongo-f7308b157e496f24c017c0face999a66390a65cc.tar.gz
SERVER-34484 added out of tree support for idl generation.
Diffstat (limited to 'site_scons')
-rwxr-xr-xsite_scons/site_tools/idl_tool.py5
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 a6ba682895c..c20e7ec34bd 100755
--- a/site_scons/site_tools/idl_tool.py
+++ b/site_scons/site_tools/idl_tool.py
@@ -109,13 +109,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(