diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-14 14:46:40 +0100 |
---|---|---|
committer | Abhishek Arya <inferno@chromium.org> | 2019-12-14 05:46:40 -0800 |
commit | db51e84fc0db72c648f1d3618ce93544029e06e6 (patch) | |
tree | fe2798c5aa42fed27690f74d58e44f4270bbcbcd /projects/php | |
parent | c0490bb89018ef2e54161c2c2b93d66837a04996 (diff) |
[php] Disable object-size sanitizer (#3128)
PHP uses a union which is only allocated to the size of the used
union member, which is apparently incompatible with the object-size
sanitizer. This is really hard for us to fix, so instead disable
the sanitizer.
Diffstat (limited to 'projects/php')
-rwxr-xr-x | projects/php/build.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/projects/php/build.sh b/projects/php/build.sh index 7dd53e65..c5871162 100755 --- a/projects/php/build.sh +++ b/projects/php/build.sh @@ -24,6 +24,10 @@ popd export ONIG_CFLAGS="-I$PWD/oniguruma/src" export ONIG_LIBS="-L$PWD/oniguruma/src/.libs -l:libonig.a" +# PHP's zend_function union is incompatible with the object-size sanitizer +export CFLAGS="$CFLAGS -fno-sanitize=object-size" +export CXXFLAGS="$CXXFLAGS -fno-sanitize=object-size" + # build project ./buildconf ./configure \ |