forked from keystone-engine/keystone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-common.sh
More file actions
executable file
·41 lines (36 loc) · 803 Bytes
/
Copy pathmake-common.sh
File metadata and controls
executable file
·41 lines (36 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
BUILDTYPE='Release'
# on MacOS, build universal binaries by default
ARCH='i386;x86_64'
# Linux FHS wants to install x64 libraries in "lib64"
# Examples are Fedora, Redhat, Suse.
LLVM_LIBDIR_SUFFIX=''
# 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
;;
lib64)
LLVM_LIBDIR_SUFFIX='64'
;;
debug)
BUILDTYPE='Debug'
;;
macos-no-universal)
ARCH='' # do not build MacOS universal binaries
;;
*)
echo "ERROR: unknown parameter \"$1\""
usage
exit 1
;;
esac
shift
done