mirror of
https://github.com/yuzu-mirror/unicorn.git
synced 2026-04-17 20:34:02 +00:00
Add ASAN build target with UNICORN_ASAN or via './make.sh asan'
This commit is contained in:
parent
8932463f9d
commit
93063d089b
4 changed files with 32 additions and 4 deletions
8
make.sh
8
make.sh
|
|
@ -10,6 +10,13 @@ MAKE_JOBS=$((${MAKE_JOBS}+0))
|
|||
[ ${MAKE_JOBS} -lt 1 ] && \
|
||||
MAKE_JOBS=4
|
||||
|
||||
# build for ASAN
|
||||
asan() {
|
||||
UNICORN_DEBUG=yes
|
||||
UNICORN_ASAN=yes
|
||||
${MAKE} V=1
|
||||
}
|
||||
|
||||
# build iOS lib for all iDevices, or only specific device
|
||||
build_iOS() {
|
||||
IOS_SDK=`xcrun --sdk iphoneos --show-sdk-path`
|
||||
|
|
@ -90,6 +97,7 @@ export CC INSTALL_BIN PREFIX PKGCFGDIR LIBDIRARCH LIBARCHS CFLAGS LDFLAGS
|
|||
|
||||
case "$1" in
|
||||
"" ) build;;
|
||||
"asan" ) asan;;
|
||||
"default" ) build;;
|
||||
"install" ) install;;
|
||||
"uninstall" ) uninstall;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue