diff --git a/clang.spec b/clang.spec index cd5045f..96acea0 100644 --- a/clang.spec +++ b/clang.spec @@ -92,6 +92,8 @@ Patch7: D141581.diff # See https://reviews.llvm.org/D138472 Patch8: D138472.diff +Patch10: fix-ieee128-cross.diff + %if %{without compat_build} # Patches for clang-tools-extra # See https://reviews.llvm.org/D120301 diff --git a/fix-ieee128-cross.diff b/fix-ieee128-cross.diff new file mode 100644 index 0000000..b14cdaa --- /dev/null +++ b/fix-ieee128-cross.diff @@ -0,0 +1,20 @@ +diff --git a/clang/test/Driver/Inputs/powerpc64le-linux-gnu-tree/gcc-12/lib64/gcc/powerpc64le-linux-gnu/12/.keep b/clang/test/Driver/Inputs/powerpc64le-linux-gnu-tree/gcc-12/lib64/gcc/powerpc64le-linux-gnu/12/.keep +new file mode 100644 +index 000000000000..e69de29bb2d1 +diff --git a/clang/test/Driver/ppc-float-abi-warning.cpp b/clang/test/Driver/ppc-float-abi-warning.cpp +index e3baa9f4c059..87d6d87a3b31 100644 +--- a/clang/test/Driver/ppc-float-abi-warning.cpp ++++ b/clang/test/Driver/ppc-float-abi-warning.cpp +@@ -17,10 +17,12 @@ + // RUN: -mabi=ieeelongdouble -stdlib=libc++ -Wno-unsupported-abi 2>&1 | \ + // RUN: FileCheck %s --check-prefix=NOWARN + // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\ ++// RUN: --dyld-prefix=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \ + // RUN: -mabi=%if ppc_linux_default_ieeelongdouble %{ieeelongdouble%} \ + // RUN: %else %{ibmlongdouble%} -stdlib=libc++ 2>&1 | \ + // RUN: FileCheck %s --check-prefix=NOWARN + // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\ ++// RUN: --dyld-prefix=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \ + // RUN: -mabi=%if ppc_linux_default_ieeelongdouble %{ibmlongdouble%} \ + // RUN: %else %{ieeelongdouble%} -stdlib=libc++ 2>&1 | FileCheck %s + \ No newline at end of file