summaryrefslogtreecommitdiff
path: root/site_scons/site_tools/icecream.py
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons/site_tools/icecream.py')
-rw-r--r--site_scons/site_tools/icecream.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/site_scons/site_tools/icecream.py b/site_scons/site_tools/icecream.py
index 7456ed0cc8f..4dadefe32ba 100644
--- a/site_scons/site_tools/icecream.py
+++ b/site_scons/site_tools/icecream.py
@@ -493,6 +493,12 @@ def generate(env):
# seems fragile. If you find your local machine being overrun by
# jobs, figure out what sort they are and extend this part of the
# setup.
+ def icerun_generator(target, source, env, for_signature):
+ if "conftest" not in str(target[0]):
+ return '$ICERUN'
+ return ''
+ env['ICERUN_GENERATOR'] = icerun_generator
+
icerun_commands = [
"ARCOM",
"LINKCOM",
@@ -502,7 +508,7 @@ def generate(env):
for command in icerun_commands:
if command in env:
- env[command] = " ".join(["$( $ICERUN $)", env[command]])
+ env[command] = " ".join(["$( $ICERUN_GENERATOR $)", env[command]])
# Uncomment these to debug your icecc integration
if env['ICECREAM_DEBUG']: