diff options
author | Slava Barinov <v.barinov@samsung.com> | 2019-07-11 16:25:46 +0300 |
---|---|---|
committer | 이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com> | 2019-07-18 15:38:18 +0900 |
commit | 59075187072252b2f048d2b4616f3f86960a2be6 (patch) | |
tree | 62283a4ea9fdc814237b20e8b97be87f11a927e5 | |
parent | f40b1b1786db0685e64272ed339c19ae0b9cc270 (diff) | |
download | coreclr-59075187072252b2f048d2b4616f3f86960a2be6.tar.gz coreclr-59075187072252b2f048d2b4616f3f86960a2be6.tar.bz2 coreclr-59075187072252b2f048d2b4616f3f86960a2be6.zip |
[Tizen] Define -DHAS_ADDRESS_SANITIZER for ASan buildsubmit/tizen/20190718.065523accepted/tizen/unified/20190718.220406
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 ad23d10a9d..5de40d1251 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} " |