From ec5ea41271ea8bd66ccfaf3acf2ae12ae6037754 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 8 Dec 2023 20:09:19 +0200 Subject: [PATCH] Properly discover the target triple. (#677) This patch helps enabling the osx target's SDKROOT. --- test/lit.site.cfg.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index c35235bcf..92121936b 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -2,13 +2,14 @@ import sys ## Autogenerated by LLVM/clad configuration. # Do not edit! +llvm_version_major = @LLVM_VERSION_MAJOR@ config.llvm_src_root = "@LLVM_SOURCE_DIR@" config.llvm_obj_root = "@LLVM_BINARY_DIR@" 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 = "@TARGET_TRIPLE@" +config.target_triple = "@LLVM_TARGET_TRIPLE@" if llvm_version_major > 11 else "@TARGET_TRIPLE@" config.shlibext = "@TARGET_SHLIBEXT@" config.have_enzyme = "@CLAD_ENABLE_ENZYME_BACKEND@"