Skip to content

Commit 81a93ef

Browse files
committed
configure: Handle absolute source paths when configuring LLVM
1 parent e7afe11 commit 81a93ef

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

configure

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,15 @@ do
471471
export CXXFLAGS
472472
export LDFLAGS
473473

474-
# FIXME: This ends up filling the screen with a bunch of LLVM configuration,
475-
# depriving the user of seeing our configuration info
476474
cd $LLVM_BUILD_DIR
477-
# FIXME: This won't work if CFG_SRC_DIR is absolute
478-
${CFG_BUILD_DIR}/${CFG_LLVM_SRC_DIR}/configure $LLVM_FLAGS
475+
case $CFG_SRC_DIR in
476+
/* | [a-z]:* | [A-Z]:*)
477+
${CFG_LLVM_SRC_DIR}/configure $LLVM_FLAGS
478+
;;
479+
*)
480+
${CFG_BUILD_DIR}/${CFG_LLVM_SRC_DIR}/configure $LLVM_FLAGS
481+
;;
482+
esac
479483
cd $CFG_BUILD_DIR
480484
else
481485
LLVM_BUILD_DIR=

0 commit comments

Comments
 (0)