mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-10 19:35:32 +00:00
build-sys: check static linking of UBSAN
Backports commit 218bb57dd79d6843e0592c30a82ea8c1fddc74a5 from qemu
This commit is contained in:
parent
bb442e7843
commit
372766d6d3
10
qemu/configure
vendored
10
qemu/configure
vendored
|
@ -1179,7 +1179,15 @@ fi
|
||||||
##########################################
|
##########################################
|
||||||
# checks for sanitizers
|
# checks for sanitizers
|
||||||
|
|
||||||
write_c_skeleton
|
# we could use a simple skeleton for flags checks, but this also
|
||||||
|
# detect the static linking issue of ubsan, see also:
|
||||||
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84285
|
||||||
|
cat > $TMPC << EOF
|
||||||
|
#include <stdint.h>
|
||||||
|
int main(void) {
|
||||||
|
return INT32_MIN / -1;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
have_asan=no
|
have_asan=no
|
||||||
have_ubsan=no
|
have_ubsan=no
|
||||||
|
|
Loading…
Reference in a new issue