Fix build error for `Add search paths for libstdc++`
authorHyungju Lee <leee.lee@samsung.com>
Fri, 31 May 2019 05:29:09 +0000 (14:29 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Sat, 25 May 2024 06:11:58 +0000 (15:11 +0900)
Change-Id: I2ac8cb6da767219d75166b4a03fc91200a96e538
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/llvm.spec

index a782ed4c5a8663ade0a334527a17f85eb4735ef1..0b36ed045f5a269558cc9e44837b43eb4a6b4f50 100644 (file)
@@ -165,9 +165,11 @@ cp %{SOURCE1001} .
 %{?asan:%gcc_unforce_options}
 %endif
 
+%ifarch armv7l armv7hl aarch64
 CPP_INCLUDE_PATHS=$(cpp -xc++ -v < /dev/null 2>&1 | \
         awk '/search starts here:/{flag=1;next}/End of search list/{flag=0}flag' | \
         sed -e "s/^ //" | tr '\n' ':' | sed -e 's/.$//')
+%endif
 
 mkdir -p build
 cd build
@@ -193,7 +195,9 @@ cmake \
     -DLLVM_BUILD_DOCS=OFF \
     -DLLVM_INCLUDE_DOCS=OFF \
     -DLLVM_OPTIMIZED_TABLEGEN=ON \
+%ifarch armv7l armv7hl aarch64
     -DC_INCLUDE_DIRS="${CPP_INCLUDE_PATHS}" \
+%endif
 %ifarch armv7l armv7hl
     -DCMAKE_ASM_FLAGS="-mfpu=neon" \
 %endif