summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2019-07-11 13:25:46 (GMT)
committerSlava Barinov <v.barinov@samsung.com>2019-07-11 14:06:40 (GMT)
commitfef1506c5afe488cfb4a7f0b462abe1d2985f530 (patch)
tree84d2dbd49ad0d61aa58f2a88b08a49b36561d679
parent51e3ca8e61b10bde4750508d8904d978eec1da3e (diff)
downloadcoreclr-sandbox/vbarinov/asan_define.zip
coreclr-sandbox/vbarinov/asan_define.tar.gz
coreclr-sandbox/vbarinov/asan_define.tar.bz2
[Tizen] Define -DHAS_ADDRESS_SANITIZER for ASan buildsandbox/vbarinov/asan_define
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. 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 78f274a..326fa6d 100755
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -146,9 +146,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} "