From 81f2e4f948fe31059d5ad867dbeffbfb0d9c9eeb Mon Sep 17 00:00:00 2001 From: "petro.zarytskyi" Date: Mon, 4 Mar 2024 16:34:59 +0200 Subject: [PATCH] Fix the bug with empty target triples --- test/lit.site.cfg.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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@"