[OpenMP][Tools][NFC] Pass intel license ENV to lit
authorJoachim Protze <protze@itc.rwth-aachen.de>
Mon, 25 Oct 2021 13:24:09 +0000 (15:24 +0200)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Mon, 25 Oct 2021 16:20:11 +0000 (18:20 +0200)
openmp/tools/multiplex/tests/lit.cfg

index 52c1000..69df2fd 100644 (file)
@@ -50,6 +50,10 @@ config.test_flags = " -I " + config.test_source_root + "/.."\
     " " + config.test_openmp_flags + \
     " " + config.test_extra_flags
 
+# to run with icc INTEL_LICENSE_FILE must be set
+if 'INTEL_LICENSE_FILE' in os.environ:
+    config.environment['INTEL_LICENSE_FILE'] = os.environ['INTEL_LICENSE_FILE']
+
 # Allow XFAIL to work
 config.target_triple = [ ]
 for feature in config.test_compiler_features: