diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 92121936b..6c36bb63a 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -9,7 +9,9 @@ config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" config.llvm_libs_dir = "@LLVM_LIBS_DIR@" config.llvm_lib_output_intdir = "@LLVM_LIBRARY_OUTPUT_INTDIR@" config.clad_obj_root = "@CLAD_BINARY_DIR@" -config.target_triple = "@LLVM_TARGET_TRIPLE@" if llvm_version_major > 11 else "@TARGET_TRIPLE@" +config.target_triple = "@LLVM_TARGET_TRIPLE@" +if config.target_triple == "" : + config.target_triple = "@TARGET_TRIPLE@" config.shlibext = "@TARGET_SHLIBEXT@" config.have_enzyme = "@CLAD_ENABLE_ENZYME_BACKEND@"