diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2021-07-30 12:19:45 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-02 21:40:19 +0000 |
commit | 07147779c17af8b5c83c128101730c3d8a1d22f6 (patch) | |
tree | 8ef205de7552d3d9cf2ae010681164123eb07dc6 /site_scons | |
parent | fe83b02a94d45aa0335678b65ebabf3bcd4467ba (diff) | |
download | mongo-07147779c17af8b5c83c128101730c3d8a1d22f6.tar.gz |
SERVER-58948 add support for generated idl to ninja
Diffstat (limited to 'site_scons')
-rw-r--r-- | site_scons/site_tools/next/ninja.py | 8 | ||||
-rw-r--r-- | site_scons/site_tools/ninja.py | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/site_scons/site_tools/next/ninja.py b/site_scons/site_tools/next/ninja.py index 21742e31629..67d27490c77 100644 --- a/site_scons/site_tools/next/ninja.py +++ b/site_scons/site_tools/next/ninja.py @@ -1040,8 +1040,14 @@ def generate_command(env, node, action, targets, sources, executor=None): def get_generic_shell_command(env, node, action, targets, sources, executor=None): + + if env.get('NINJA_TEMPLATE'): + rule = 'TEMPLATE' + else: + rule = 'CMD' + return ( - "CMD", + rule, { "cmd": generate_command(env, node, action, targets, sources, executor=None), "env": get_command_env(env), diff --git a/site_scons/site_tools/ninja.py b/site_scons/site_tools/ninja.py index 6448bf428b5..84281d3e9b5 100644 --- a/site_scons/site_tools/ninja.py +++ b/site_scons/site_tools/ninja.py @@ -1027,8 +1027,14 @@ def generate_command(env, node, action, targets, sources, executor=None): def get_generic_shell_command(env, node, action, targets, sources, executor=None): + + if env.get('NINJA_TEMPLATE'): + rule = 'TEMPLATE' + else: + rule = 'CMD' + return ( - "CMD", + rule, { "cmd": generate_command(env, node, action, targets, sources, executor=None), "env": get_command_env(env), |