File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,16 @@ if [ $simulator == 1 ]; then
53
53
export CFLAGS=" -O3 -arch x86_64 -arch i386 -fembed-bitcode-marker -mios-simulator-version-min=10.0 -isysroot ` xcrun -sdk iphonesimulator --show-sdk-path` "
54
54
export CXXFLAGS=" -O3 -arch x86_64 -arch i386 -fembed-bitcode-marker -mios-simulator-version-min=10.0 -isysroot ` xcrun -sdk iphonesimulator --show-sdk-path` "
55
55
mkdir -p build
56
- ./configure --disable-shared --host=x86_64-apple-darwin --enable-static --disable-elements
56
+
57
+ architecture=$( uname -m)
58
+ arch_target=" x86_64-apple-darwin"
59
+
60
+ if [ " $architecture " = " arm64" ]; then
61
+ arch_target=" aarch64-apple-darwin"
62
+ fi
63
+
64
+ ./configure --disable-shared --host=$arch_target --enable-static --disable-elements
65
+
57
66
if [ $clean == 1 ]; then
58
67
set -v # display commands
59
68
make clean
You can’t perform that action at this time.
0 commit comments