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

+6
View File
@@ -72,6 +72,12 @@ else
;;
esac
fi
if [ -n "$MACOS_REDIST" ]; then
if [ -z "$CFLAGS" ]; then
export CFLAGS="-g -O2"
fi
export CFLAGS="$CFLAGS -arch arm64 -arch x86_64 -mmacosx-version-min=10.9"
fi
if [ -n "$SKIP_INCLUDE_TRIPLET_PREFIX" ]; then
INCLUDEDIR="$PREFIX/include"
else