gcc headers were added to clang's include search path long ago
apparently to provide libstdc++'s headers. But that change also addded
C headers from gcc's runtime in addition to c++ headers, leading to
conflicts between gcc's and clang's headers. As clang automatically
includes libstdc++ headers to its search path, reverting the
change.
Change-Id: Ibca301c922d549bdf9070574e0fe35c6ed7bfbf7
cp %{SOURCE1001} .
%{?asan:%gcc_unforce_options}
-%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
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