Remove code which assumes it knows how vectors are stored in memory.
[oota-llvm.git] / test / lit.cfg
index 3b45bf9bd3b50013b345c72e5a2761056536a674..ad73e98bfe78ade27589fcd965df70afba9c1222 100644 (file)
@@ -40,8 +40,6 @@ if llvm_obj_root is not None:
     config.environment['PATH'] = path
 
     llvmgcc_dir = getattr(config, 'llvmgcc_dir', None)
-    if not llvm_tools_dir:
-        lit.fatal('No llvm-gcc dir set!')
     if llvmgcc_dir:
         path = os.path.pathsep.join((os.path.join(llvmgcc_dir, 'bin'),
                                      config.environment['PATH']))
@@ -114,6 +112,11 @@ for sub in ['llvmgcc', 'llvmgxx', 'compile_cxx', 'compile_c',
     if sub in ('llvmgcc', 'llvmgxx'):
         config.substitutions.append(('%' + sub,
                                      site_exp[sub] + ' -emit-llvm -w'))
+    # FIXME: This is a hack to avoid LLVMC tests failing due to a clang driver
+    #        warning when passing in "-fexceptions -fno-exceptions".
+    elif sub == 'compile_cxx':
+        config.substitutions.append(('%' + sub,
+                                  site_exp[sub].replace('-fno-exceptions', '')))
     else:
         config.substitutions.append(('%' + sub, site_exp[sub]))