Skip to content

Commit be53dca

Browse files
committed
Find llvm-config
1 parent 19ccd24 commit be53dca

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ typeart_configure_coverage_script(llvm-gcov.sh.in llvm-gcov.sh)
181181

182182
typeart_configure_script(opt-shim.in opt-shim)
183183

184+
typeart_find_llvm_progs(TYPEART_LLVMCONFIG_COMMAND "llvm-config-${LLVM_VERSION_MAJOR};llvm-config"
185+
HINTS /usr/lib/llvm-${LLVM_VERSION_MAJOR}/bin/)
184186
typeart_configure_script(typeart-tmpl.sh.in run.sh
185187
OPT ON)
186188
typeart_configure_script(typeart-tmpl.sh.in apply.sh

scripts/typeart-tmpl.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function global_init() {
132132
readonly typeart_interceptor="@TYPEART_MPI_INTERCEPT_DIR@/@TYPEART_MPI_TOOL@"
133133
fi
134134

135-
readonly llvm_sys_libs=$(llvm-config --system-libs)
135+
readonly llvm_sys_libs=$(@TYPEART_LLVMCONFIG_COMMAND@ --system-libs)
136136

137137
readonly typeart_has_interceptor="@TYPEART_HAS_MPI_TOOL@"
138138

0 commit comments

Comments
 (0)