Allow building a redistributable package for macOS

This includes building universal binaries (for arm64 and x86_64)
and targeting an older minimum deployment target.

(Before 1919720fdd348ca568b235bf3f1357c198eccd15 in llvm-project,
Jan 2022, building lldb's debugserver failed, if building for macOS
for multiple architectures, or for an architecture other than the
current host.)
This commit is contained in:
Martin Storsjö committed 2022-02-09 14:02:20 +02:00
1 parent 14db168cd6
commit ee6caf31cf
4 files changed
+20

No files matched your search

+4
View File
@@ -54,6 +54,10 @@ if [ -n "$HOST" ]; then
EXEEXT=.exe
fi
if [ -n "$MACOS_REDIST" ]; then
WRAPPER_FLAGS="$WRAPPER_FLAGS -arch arm64 -arch x86_64 -mmacosx-version-min=10.9"
fi
if [ -n "$EXEEXT" ]; then
CLANG_MAJOR=$(basename $(echo $PREFIX/lib/clang/* | awk '{print $NF}') | cut -f 1 -d .)
WRAPPER_FLAGS="$WRAPPER_FLAGS -municode -DCLANG=\"clang-$CLANG_MAJOR\""