mirror of
https://github.com/keystone-engine/keystone
synced 2026-06-08 15:15:30 +00:00
3ea06c9ed3
* Don't build universal binaries by default Starting Xcode 10 beta, there's no support for i386. This commit changes the default build on iOS to regular libraries instead of universal binaries. Build of universal binaries is still supported with macos-universal. * Add macos-no-universal option (compatibility) Keep the default to be macos-no-universal, but add it as an option as well for backward compatibility.
38 lines
723 B
Bash
Executable File
38 lines
723 B
Bash
Executable File
BUILDTYPE='Release'
|
|
|
|
# on MacOS, do not build universal binaries by default
|
|
ARCH=''
|
|
|
|
# by default we do NOT build 32bit on 64bit system
|
|
LLVM_BUILD_32_BITS=0
|
|
|
|
# by default we build libraries & kstool
|
|
# but we can skip kstool & build libraries only
|
|
BUILD_LIBS_ONLY=0
|
|
|
|
while [ "$1" != "" ]; do
|
|
case $1 in
|
|
lib_only)
|
|
BUILD_LIBS_ONLY=1
|
|
;;
|
|
lib32)
|
|
LLVM_BUILD_32_BITS=1
|
|
;;
|
|
debug)
|
|
BUILDTYPE='Debug'
|
|
;;
|
|
macos-no-universal)
|
|
ARCH='' # do not build MacOS universal binaries
|
|
;;
|
|
macos-universal)
|
|
ARCH='i386;x86_64' # build MacOS universal binaries
|
|
;;
|
|
*)
|
|
echo "ERROR: unknown parameter \"$1\""
|
|
usage
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|