Index: pnacl/driver/driver_tools.py |
diff --git a/pnacl/driver/driver_tools.py b/pnacl/driver/driver_tools.py |
index a05813597f3be114af5cc5b0f34f6464b03a70d1..8a1b16b11c485ee37bc4d04cec65727641863dcf 100755 |
--- a/pnacl/driver/driver_tools.py |
+++ b/pnacl/driver/driver_tools.py |
@@ -1074,7 +1074,11 @@ def ArchMerge(filename, must_match): |
def CheckTranslatorPrerequisites(): |
""" Assert that the scons artifacts for running the sandboxed translator |
exist: sel_universal, and sel_ldr. """ |
- for var in ['SEL_UNIVERSAL', 'SEL_LDR', 'BOOTSTRAP_LDR']: |
+ reqs = ['SEL_UNIVERSAL', 'SEL_LDR'] |
+ # Linux also requires the nacl bootstrap helper. |
+ if GetBuildOS() == 'linux': |
+ reqs.append('BOOTSTRAP_LDR') |
+ for var in reqs: |
needed_file = env.getone(var) |
if not pathtools.exists(needed_file): |
Log.Fatal('Could not find %s [%s]', var, needed_file) |