[packaging] Always build with non-asan for all architecture develop
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 12 Aug 2022 02:28:37 +0000 (11:28 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 8 Mar 2023 00:25:13 +0000 (09:25 +0900)
Always build with non-asan not only i586 but also all other
architectures. Otherwise, llvm build will be failed from below:
  /home/abuild/rpmbuild/BUILD/llvm-10.0.0/compiler-rt/lib/asan/asan_internal.h:24:3: error: #error "The AddressSanitizer run-time should not be"
     24 | # error "The AddressSanitizer run-time should not be"
     25 |         " instrumented by AddressSanitizer"

Change-Id: I3189246d5c6ed63760b7c2699dcfd830c5b4bce6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
packaging/llvm.spec

index 4fb117d..7b7b828 100644 (file)
@@ -166,9 +166,7 @@ export FFLAGS=${RELFFLAGS}
 %endif
 
 cp %{SOURCE1001} .
-%ifarch %ix86
 %{?asan:%gcc_unforce_options}
-%endif
 
 %ifarch armv7l armv7hl aarch64
 CPP_INCLUDE_PATHS=$(cpp -xc++ -v < /dev/null 2>&1 | \