Browse Source

llvm-18: fix linking the compiler with clang-18

Laytan Laats 1 year ago
parent
commit
f64e8ffd64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build_odin.sh

+ 1 - 1
build_odin.sh

@@ -65,7 +65,7 @@ Darwin)
 	fi
 
 	CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)"
-	LDFLAGS="$LDFLAGS -liconv -ldl -framework System -lLLVM -Wl,-rpath $($LLVM_CONFIG --libdir)"
+	LDFLAGS="$LDFLAGS -isysroot $(xcrun --show-sdk-path -sdk macosx) -liconv -ldl -framework System -lLLVM -Wl,-rpath $($LLVM_CONFIG --libdir)"
 	;;
 FreeBSD)
 	CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)"