mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Suppress UB warnings regarding indirect function calls
Like for POSIX systems, we pass `-fno-sanitize=function`. Closes GH-17462.
This commit is contained in:
parent
e1c4c0300e
commit
7dbfacb27e
1 changed files with 1 additions and 1 deletions
|
@ -3739,7 +3739,7 @@ function add_asan_opts(cflags_name, libs_name, ldflags_name)
|
|||
var lib_dir = get_clang_lib_dir();
|
||||
|
||||
if (!!cflags_name) {
|
||||
ADD_FLAG(cflags_name, "-fsanitize=address,undefined");
|
||||
ADD_FLAG(cflags_name, "-fsanitize=address,undefined -fno-sanitize=function");
|
||||
}
|
||||
if (!!libs_name) {
|
||||
if (TARGET_ARCH == 'x64') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue