summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2019-07-11 13:25:46 (GMT)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>2019-07-18 06:38:18 (GMT)
commit59075187072252b2f048d2b4616f3f86960a2be6 (patch)
tree62283a4ea9fdc814237b20e8b97be87f11a927e5
parentf40b1b1786db0685e64272ed339c19ae0b9cc270 (diff)
downloadcoreclr-accepted/tizen_unified.zip
coreclr-accepted/tizen_unified.tar.gz
coreclr-accepted/tizen_unified.tar.bz2
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-xpackaging/coreclr.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index ad23d10..5de40d1 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} "