diff options
author | Slava Barinov <v.barinov@samsung.com> | 2019-07-11 16:25:46 +0300 |
---|---|---|
committer | Konstantin Baladurin <k.baladurin@samsung.com> | 2019-09-26 00:24:34 +0300 |
commit | fe7b7d657e2b4a9e5080ba51467fbb8a9de7b9e5 (patch) | |
tree | 427e043fa00a6f019160da182bb48d876709fec7 | |
parent | 3d10a6fe96d5e4855cefd30b59a4fa9c9f8c342f (diff) | |
download | coreclr-fe7b7d657e2b4a9e5080ba51467fbb8a9de7b9e5.tar.gz coreclr-fe7b7d657e2b4a9e5080ba51467fbb8a9de7b9e5.tar.bz2 coreclr-fe7b7d657e2b4a9e5080ba51467fbb8a9de7b9e5.zip |
[Tizen] Define -DHAS_ADDRESS_SANITIZER for ASan build
This define turns on new and delete operators compatibility mode for build with
Address Sanitizer. It allows Tizen libasan to intercept operators and prevents
alloc-dealloc-mismatch errors.
Change-Id: If72b1d42dd99eaaf11d3cb1232006ee0e2e411c3
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rwxr-xr-x | packaging/coreclr.spec | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec index 3918d61ffe..e252f57995 100755 --- a/packaging/coreclr.spec +++ b/packaging/coreclr.spec @@ -144,9 +144,12 @@ done %build # disable asan build when global forced asan build -%{?asan:export ASAN_OPTIONS=use_sigaltstack=false:`cat /ASAN_OPTIONS`} -%{?asan:/usr/bin/gcc-unforce-options} -%{?asan:export LD_LIBRARY_PATH=`pwd`/libicu-57.1} +%{?asan: +export ASAN_OPTIONS=use_sigaltstack=false:`cat /ASAN_OPTIONS` +/usr/bin/gcc-unforce-options +export LD_LIBRARY_PATH=`pwd`/libicu-57.1 +export CPPFLAGS+=" -DHAS_ADDRESS_SANITIZER " +} export CFLAGS=" --target=%{_host} " export CXXFLAGS=" --target=%{_host} " |