We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3d54b7 commit b23440dCopy full SHA for b23440d
system-build.sh
@@ -282,7 +282,11 @@ if [ -z "$LLVM_DIR" ]; then
282
fi
283
284
# detect the link type of LLVM that we use
285
-if [ "$($LLVM_CONFIG --shared-mode --libs)" = "shared" ]; then
+if [ "$($LLVM_CONFIG --shared-mode --libs)" = "shared" ] || \
286
+ # TODO: $LLVM_CONFIG --shared-mode is broken on macOS:
287
+ # https://bugs.llvm.org/show_bug.cgi?id=40252
288
+ # This workaround won't be needed when we switch to CMake.
289
+ stat "$LLVM_LIB_DIR"/libLLVM.dylib; then
290
LLVM_DYLIB="on"
291
else
292
LLVM_DYLIB="off"
0 commit comments