Pārlūkot izejas kodu

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

Laytan Laats 1 gadu atpakaļ
vecāks
revīzija
f64e8ffd64
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)"