diff options
author | Dongkyun Son <dongkyun.s@samsung.com> | 2017-09-05 09:34:16 +0900 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2017-09-05 09:34:48 +0900 |
commit | 17c94bdfa93b7c6534d20ef178ba80d0ce5b6a1f (patch) | |
tree | 1f04465cfecd0e3a98185fe6661f757c7c81e65c | |
parent | 3325c20b1371d4f708020435d8d0787e39304d48 (diff) | |
parent | b112bfee673229c2b951a19afad96911bad02694 (diff) | |
download | qemu-accel-tizen_4.0_tv.tar.gz qemu-accel-tizen_4.0_tv.tar.bz2 qemu-accel-tizen_4.0_tv.zip |
Merge tag 'submit/tizen_base/20170830.083645' into tizen_4.0_basetizen_4.0.m2_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_4.0_base/20170905.042846accepted/tizen/4.0/base/20170908.223627tizen_4.0_tv
Unforce options in ASan projects
Change-Id: Ia12a8f2484d59ee3d657e26c951d981c3f9bd6f1
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
-rw-r--r-- | packaging/qemu-accel-aarch64.spec | 9 | ||||
-rw-r--r-- | packaging/qemu-accel-armv7l.spec | 9 | ||||
-rw-r--r-- | packaging/qemu-accel.spec.in | 9 |
3 files changed, 9 insertions, 18 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec index 7e735c5..82cda59 100644 --- a/packaging/qemu-accel-aarch64.spec +++ b/packaging/qemu-accel-aarch64.spec @@ -107,6 +107,9 @@ This package is used in qemu-accel to accelerate clang compiler. %prep %build +%if 0%{?asan} || 0%{?ubsan} +%gcc_unforce_options +%endif %install set +x @@ -122,12 +125,6 @@ binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlo LD="/%{_lib}/ld-linux-x86-64.so.2" %endif -# Check if we use toolchain with sanitizers support -[ -f /usr/bin/gcc-force-options ] && sanitizer_enabled=1 -if [ x"$sanitizer_enabled" == x"1" ]; then - real_compiler=`find %{_bindir} -name '*-real' -printf '%{_bindir}/%%f '` -fi - for executable in $LD \ %{_bindir}/bash \ %{_bindir}/{rpm,rpm2cpio,rpmdb,rpmkeys,rpmqpack,rpmbuild,rpmsign,rpmspec} \ diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec index fb7c359..3234811 100644 --- a/packaging/qemu-accel-armv7l.spec +++ b/packaging/qemu-accel-armv7l.spec @@ -107,6 +107,9 @@ This package is used in qemu-accel to accelerate clang compiler. %prep %build +%if 0%{?asan} || 0%{?ubsan} +%gcc_unforce_options +%endif %install set +x @@ -122,12 +125,6 @@ binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlo LD="/%{_lib}/ld-linux-x86-64.so.2" %endif -# Check if we use toolchain with sanitizers support -[ -f /usr/bin/gcc-force-options ] && sanitizer_enabled=1 -if [ x"$sanitizer_enabled" == x"1" ]; then - real_compiler=`find %{_bindir} -name '*-real' -printf '%{_bindir}/%%f '` -fi - for executable in $LD \ %{_bindir}/bash \ %{_bindir}/{rpm,rpm2cpio,rpmdb,rpmkeys,rpmqpack,rpmbuild,rpmsign,rpmspec} \ diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in index e073b71..6c17e66 100644 --- a/packaging/qemu-accel.spec.in +++ b/packaging/qemu-accel.spec.in @@ -104,6 +104,9 @@ This package is used in qemu-accel to accelerate clang compiler. %prep %build +%if 0%{?asan} || 0%{?ubsan} +%gcc_unforce_options +%endif %install set +x @@ -119,12 +122,6 @@ binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlo LD="/%{_lib}/ld-linux-x86-64.so.2" %endif -# Check if we use toolchain with sanitizers support -[ -f /usr/bin/gcc-force-options ] && sanitizer_enabled=1 -if [ x"$sanitizer_enabled" == x"1" ]; then - real_compiler=`find %{_bindir} -name '*-real' -printf '%{_bindir}/%%f '` -fi - for executable in $LD \ %{_bindir}/bash \ %{_bindir}/{rpm,rpm2cpio,rpmdb,rpmkeys,rpmqpack,rpmbuild,rpmsign,rpmspec} \ |