forked from qemu/qemu
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build_asan.sh
executable file
·32 lines (27 loc) · 889 Bytes
/
build_asan.sh
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
#!/bin/bash
export LOCAL_LLVM_BUILD=$HOME/Documents/workspace/builds/llvm/build
export CONF_OPTS=(
--audio-drv-list=''
--disable-aio
--disable-bluez
--disable-brlapi
--disable-bsd-user
--disable-curses
--disable-darwin-user
--disable-kqemu
--disable-kvm
--disable-linux-user
--disable-pthread
--disable-sparse
--disable-strip
--disable-vde
--disable-vnc-sasl
--disable-vnc-tls
--disable-werror
--disable-xen
--target-list=arm-softmmu
--extra-cflags="-Wall -g3 -Os -fno-omit-frame-pointer -fno-inline -fsanitize=address -I/Applications/Xcode.app/Contents//Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1 -fsanitize=address"
--extra-ldflags="-L$LOCAL_LLVM_BUILD/lib/ -L$LOCAL_LLVM_BUILD/lib/clang/3.6.0/lib/darwin/ -lclang_rt.asan_osx_dynamic -lc++ -lc++abi -Xlinker -rpath -Xlinker $LOCAL_LLVM_BUILD/lib"
--cc="$LOCAL_LLVM_BUILD/bin/clang"
)
./configure "${CONF_OPTS[@]}"