Skip to content

Commit 5ccf372

Browse files
author
Austin Seipp
committed
Make sure $CFG_LLVM_CONFIG is set to $CFG_LLVM_ROOT/bin/llvm-config
On my machine I have two LLVM builds, one of regular HEAD and one for Rust in ~/rust-llvm - by default CFG_LLVM_CONFIG is set to /usr/local/bin/llvm-config which is wrong, because the probe for it initially happens earlier in configure and succeeds (so putvar is called.) This causes it to be emitted twice into the Makefile but the second instance wins.
1 parent b916c57 commit 5ccf372

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ putvar CFG_C_COMPILER
371371
putvar CFG_PREFIX
372372

373373
putvar CFG_LLVM_ROOT
374+
putvar CFG_LLVM_CONFIG
374375
putvar CFG_LLVM_INCDIR
375376
putvar CFG_LLVM_BINDIR
376377
putvar CFG_LLVM_LIBDIR

0 commit comments

Comments
 (0)