[packaging] Always build with non-asan for all architecture
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 12 Aug 2022 02:28:37 +0000 (11:28 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Sat, 25 May 2024 06:12:21 +0000 (15:12 +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 cab0ac83479f1172469aca540d5ac3f035af295a..fe54bb0332f55f102a485e17e3a1fca40d8a36b6 100644 (file)
@@ -161,9 +161,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 | \