diff options
author | Richard Samuels <richard.l.samuels@gmail.com> | 2021-04-05 13:34:26 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-05 17:55:15 +0000 |
commit | 3072baf21f36d49b5954d1c2ea899b0b7b10d462 (patch) | |
tree | b5b45db295a641d3c7dbcdd875e801191123ba47 /buildscripts/generate_compile_expansions.py | |
parent | 649dc04027667b30155be39be39a880cb0b8743a (diff) | |
download | mongo-3072baf21f36d49b5954d1c2ea899b0b7b10d462.tar.gz |
SERVER-55300 SERVER-55731 Implement expansions handling for standalone shell
Diffstat (limited to 'buildscripts/generate_compile_expansions.py')
-rwxr-xr-x | buildscripts/generate_compile_expansions.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildscripts/generate_compile_expansions.py b/buildscripts/generate_compile_expansions.py index 653f01502cb..cd3b7c63b0c 100755 --- a/buildscripts/generate_compile_expansions.py +++ b/buildscripts/generate_compile_expansions.py @@ -11,6 +11,7 @@ import json import os import re import sys +import shlex import yaml VERSION_JSON = "version.json" @@ -94,8 +95,8 @@ def generate_scons_cache_expansions(): scons_cache_mode = "nolinked" if os.getenv("USE_SCONS_CACHE") not in (None, False, "false", ""): - expansions["scons_cache_args"] = "--cache={0} --cache-dir='{1}'".format( - scons_cache_mode, default_cache_path) + expansions["scons_cache_args"] = "--cache={0} --cache-dir={1}".format( + scons_cache_mode, shlex.quote(default_cache_path)) return expansions |