kopia lustrzana https://github.com/jameshball/osci-render
possible macos fix
rodzic
23e8f5d2fa
commit
e171314e8d
|
@ -8,24 +8,27 @@ cd "$DIR/modules/LuaJIT/src" || exit 1
|
||||||
if [[ "$OSTYPE" == *"darwin"* ]]; then
|
if [[ "$OSTYPE" == *"darwin"* ]]; then
|
||||||
echo "Building LuaJIT universal binary (x86_64 + arm64)..."
|
echo "Building LuaJIT universal binary (x86_64 + arm64)..."
|
||||||
|
|
||||||
# Build x86_64
|
make clean
|
||||||
|
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET=10.13
|
||||||
|
|
||||||
|
# build x86_64
|
||||||
make -j$(sysctl -n hw.logicalcpu) \
|
make -j$(sysctl -n hw.logicalcpu) \
|
||||||
|
LUAJIT_T=luajit-x86_64 \
|
||||||
BUILDMODE=static \
|
BUILDMODE=static \
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.13 \
|
CC='clang -target x86_64-apple-macos' \
|
||||||
CC="clang -arch x86_64" \
|
|| exit 2
|
||||||
XCFLAGS="-DLUAJIT_ENABLE_GC64" \
|
|
||||||
|| exit 2
|
|
||||||
|
|
||||||
mv libluajit.a libluajit_x86_64.a
|
mv libluajit.a libluajit_x86_64.a
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
# Build arm64
|
# Build arm64
|
||||||
make -j$(sysctl -n hw.logicalcpu) \
|
make -j$(sysctl -n hw.logicalcpu) \
|
||||||
|
LUAJIT_T=luajit-arm64 \
|
||||||
BUILDMODE=static \
|
BUILDMODE=static \
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.13 \
|
CC='clang -target arm64-apple-macos' \
|
||||||
CC="clang -arch arm64" \
|
|| exit 3
|
||||||
XCFLAGS="-DLUAJIT_ENABLE_GC64" \
|
|
||||||
|| exit 3
|
|
||||||
|
|
||||||
mv libluajit.a libluajit_arm64.a
|
mv libluajit.a libluajit_arm64.a
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue