r239047 - [SPARC] Fix multiarch path detection for sparc and sparcv9.
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Jun 5 06:23:03 PDT 2015
I think it is good, thanks.
On 5 June 2015 at 00:39, James Y Knight <jyknight at google.com> wrote:
> On Jun 4, 2015, at 12:45 PM, Rafael EspĂndola <rafael.espindola at gmail.com>
> wrote:
>
> Testcase?
>
> Attached look okay to you? In addition to linux-ld.c tests, I've also
> included an include path fix, and linux-header-search.cpp tests covering
> that.
>
>
> commit 1c6aca5bbebb98070b1f5439bce3a3651be146b2
> Author: James Y Knight <jyknight at google.com>
> Date: Fri Jun 5 00:06:43 2015 -0400
>
> [SPARC] Add multiarch include paths.
>
> Adds tests verifying the proper dirs are found in the Debian 8/GCC4.9
> layout for sparc (32bit), sparc (32bit) with lib64 multilib, and
> sparc64.
>
> The test cases added here also cover r239047, which fixed the linker
> paths.
>
> diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
> index 4eb8994..77ec5d1 100644
> --- a/lib/Driver/ToolChains.cpp
> +++ b/lib/Driver/ToolChains.cpp
> @@ -3475,6 +3475,12 @@ void Linux::AddClangSystemIncludeArgs(const ArgList
> &DriverArgs,
> const StringRef PPC64LEMultiarchIncludeDirs[] = {
> "/usr/include/powerpc64le-linux-gnu"
> };
> + const StringRef SparcMultiarchIncludeDirs[] = {
> + "/usr/include/sparc-linux-gnu"
> + };
> + const StringRef Sparc64MultiarchIncludeDirs[] = {
> + "/usr/include/sparc64-linux-gnu"
> + };
> ArrayRef<StringRef> MultiarchIncludeDirs;
> if (getTriple().getArch() == llvm::Triple::x86_64) {
> MultiarchIncludeDirs = X86_64MultiarchIncludeDirs;
> @@ -3502,6 +3508,10 @@ void Linux::AddClangSystemIncludeArgs(const ArgList
> &DriverArgs,
> MultiarchIncludeDirs = PPC64MultiarchIncludeDirs;
> } else if (getTriple().getArch() == llvm::Triple::ppc64le) {
> MultiarchIncludeDirs = PPC64LEMultiarchIncludeDirs;
> + } else if (getTriple().getArch() == llvm::Triple::sparc) {
> + MultiarchIncludeDirs = SparcMultiarchIncludeDirs;
> + } else if (getTriple().getArch() == llvm::Triple::sparcv9) {
> + MultiarchIncludeDirs = Sparc64MultiarchIncludeDirs;
> }
> for (StringRef Dir : MultiarchIncludeDirs) {
> if (llvm::sys::fs::exists(SysRoot + Dir)) {
> diff --git
> a/test/Driver/Inputs/debian_8_sparc64_tree/lib/sparc64-linux-gnu/.keep
> b/test/Driver/Inputs/debian_8_sparc64_tree/lib/sparc64-linux-gnu/.keep
> new file mode 100644
> index 0000000..e69de29
> diff --git a/test/Driver/Inputs/debian_8_sparc64_tree/lib64/.keep
> b/test/Driver/Inputs/debian_8_sparc64_tree/lib64/.keep
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc64_tree/usr/include/c++/4.9/.keep
> b/test/Driver/Inputs/debian_8_sparc64_tree/usr/include/c++/4.9/.keep
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc64_tree/usr/include/sparc64-linux-gnu/c++/4.9/.keep
> b/test/Driver/Inputs/debian_8_sparc64_tree/usr/include/sparc64-linux-gnu/c++/4.9/.keep
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/gcc/sparc64-linux-gnu/4.9/crtbegin.o
> b/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/gcc/sparc64-linux-gnu/4.9/crtbegin.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/gcc/sparc64-linux-gnu/4.9/crtend.o
> b/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/gcc/sparc64-linux-gnu/4.9/crtend.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/sparc64-linux-gnu/crt1.o
> b/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/sparc64-linux-gnu/crt1.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/sparc64-linux-gnu/crti.o
> b/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/sparc64-linux-gnu/crti.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/sparc64-linux-gnu/crtn.o
> b/test/Driver/Inputs/debian_8_sparc64_tree/usr/lib/sparc64-linux-gnu/crtn.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/lib/sparc-linux-gnu/.keep
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/lib/sparc-linux-gnu/.keep
> new file mode 100644
> index 0000000..e69de29
> diff --git a/test/Driver/Inputs/debian_8_sparc_multilib_tree/lib64/.keep
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/lib64/.keep
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/include/c++/4.9/backward/.keep
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/include/c++/4.9/backward/.keep
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/include/sparc-linux-gnu/c++/4.9/64/.keep
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/include/sparc-linux-gnu/c++/4.9/64/.keep
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/gcc/sparc-linux-gnu/4.9/64/crtbegin.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/gcc/sparc-linux-gnu/4.9/64/crtbegin.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/gcc/sparc-linux-gnu/4.9/64/crtend.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/gcc/sparc-linux-gnu/4.9/64/crtend.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/gcc/sparc-linux-gnu/4.9/crtbegin.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/gcc/sparc-linux-gnu/4.9/crtbegin.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/gcc/sparc-linux-gnu/4.9/crtend.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/gcc/sparc-linux-gnu/4.9/crtend.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/sparc-linux-gnu/crt1.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/sparc-linux-gnu/crt1.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/sparc-linux-gnu/crti.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/sparc-linux-gnu/crti.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/sparc-linux-gnu/crtn.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib/sparc-linux-gnu/crtn.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib64/crt1.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib64/crt1.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib64/crti.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib64/crti.o
> new file mode 100644
> index 0000000..e69de29
> diff --git
> a/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib64/crtn.o
> b/test/Driver/Inputs/debian_8_sparc_multilib_tree/usr/lib64/crtn.o
> new file mode 100644
> index 0000000..e69de29
> diff --git a/test/Driver/linux-header-search.cpp
> b/test/Driver/linux-header-search.cpp
> index 574ae22..23912cb 100644
> --- a/test/Driver/linux-header-search.cpp
> +++ b/test/Driver/linux-header-search.cpp
> @@ -285,3 +285,60 @@
> // CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include/mips64el-linux-gnuabi64"
> // CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/include"
> // CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include"
> +
> +// Check header search on Debian 8 / Sparc
> +// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
> +// RUN: -target sparc-unknown-linux-gnu \
> +// RUN: --sysroot=%S/Inputs/debian_8_sparc_multilib_tree \
> +// RUN: --gcc-toolchain="" \
> +// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-SPARC32 %s
> +// CHECK-DEBIAN-SPARC32: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
> +// CHECK-DEBIAN-SPARC32: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
> +// CHECK-DEBIAN-SPARC32: "-isysroot" "[[SYSROOT:[^"]+]]"
> +// CHECK-DEBIAN-SPARC32: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../include/c++/4.9"
> +// CHECK-DEBIAN-SPARC32: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../include/sparc-linux-gnu/c++/4.9"
> +// CHECK-DEBIAN-SPARC32: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../include/c++/4.9/backward"
> +// CHECK-DEBIAN-SPARC32: "-internal-isystem"
> "[[SYSROOT]]/usr/local/include"
> +// CHECK-DEBIAN-SPARC32: "-internal-isystem"
> "[[RESOURCE_DIR]]{{/|\\\\}}include"
> +// CHECK-DEBIAN-SPARC32: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include/sparc-linux-gnu"
> +// CHECK-DEBIAN-SPARC32: "-internal-externc-isystem" "[[SYSROOT]]/include"
> +// CHECK-DEBIAN-SPARC32: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include"
> +
> +// Check header search on Debian 8 / Sparc, with the oldstyle multilib
> packages
> +// RUN: %clang -no-canonical-prefixes -m64 %s -### -fsyntax-only 2>&1 \
> +// RUN: -target sparc-unknown-linux-gnu \
> +// RUN: --sysroot=%S/Inputs/debian_8_sparc_multilib_tree \
> +// RUN: --gcc-toolchain="" \
> +// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-SPARC32-LIB64 %s
> +// CHECK-DEBIAN-SPARC32-LIB64: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-isysroot" "[[SYSROOT:[^"]+]]"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../include/c++/4.9"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../include/sparc-linux-gnu/c++/4.9/64"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../include/c++/4.9/backward"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-internal-isystem"
> "[[SYSROOT]]/usr/local/include"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-internal-isystem"
> "[[RESOURCE_DIR]]{{/|\\\\}}include"
> +/* TODO: GCC 4.9 includes the following dir in its search path, which
> + seems questionable. Clang doesn't. Not sure if clang should be
> + doing that too. */
> +// CHECK-DEBIAN-SPARC32-LIB64-todo: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include/sparc-linux-gnu"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-internal-externc-isystem"
> "[[SYSROOT]]/include"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include"
> +
> +// Check header search on Debian 8 / Sparc64
> +// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
> +// RUN: -target sparc64-unknown-linux-gnu \
> +// RUN: --sysroot=%S/Inputs/debian_8_sparc64_tree \
> +// RUN: --gcc-toolchain="" \
> +// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-SPARC64 %s
> +// CHECK-DEBIAN-SPARC64: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
> +// CHECK-DEBIAN-SPARC64: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
> +// CHECK-DEBIAN-SPARC64: "-isysroot" "[[SYSROOT:[^"]+]]"
> +// CHECK-DEBIAN-SPARC64: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/../../../../include/c++/4.9"
> +// CHECK-DEBIAN-SPARC64: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/../../../../include/sparc64-linux-gnu/c++/4.9"
> +// CHECK-DEBIAN-SPARC64: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/../../../../include/c++/4.9/backward"
> +// CHECK-DEBIAN-SPARC64: "-internal-isystem"
> "[[SYSROOT]]/usr/local/include"
> +// CHECK-DEBIAN-SPARC64: "-internal-isystem"
> "[[RESOURCE_DIR]]{{/|\\\\}}include"
> +// CHECK-DEBIAN-SPARC64: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include/sparc64-linux-gnu"
> +// CHECK-DEBIAN-SPARC64: "-internal-externc-isystem" "[[SYSROOT]]/include"
> +// CHECK-DEBIAN-SPARC64: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include"
> diff --git a/test/Driver/linux-ld.c b/test/Driver/linux-ld.c
> index 38edb7f..5cfa3b7 100644
> --- a/test/Driver/linux-ld.c
> +++ b/test/Driver/linux-ld.c
> @@ -904,6 +904,67 @@
> // CHECK-DEBIAN-MIPS64EL-N32: "-L[[SYSROOT]]/lib"
> // CHECK-DEBIAN-MIPS64EL-N32: "-L[[SYSROOT]]/usr/lib"
> //
> +// Check linker paths on Debian 8 / Sparc
> +// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
> +// RUN: --target=sparc-linux-gnu \
> +// RUN: --gcc-toolchain="" \
> +// RUN: --sysroot=%S/Inputs/debian_8_sparc_multilib_tree \
> +// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-SPARC32 %s
> +// CHECK-DEBIAN-SPARC32: "{{.*}}ld{{(.exe)?}}"
> "--sysroot=[[SYSROOT:[^"]+]]"
> +// CHECK-DEBIAN-SPARC32:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../sparc-linux-gnu/crt1.o"
> +// CHECK-DEBIAN-SPARC32:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../sparc-linux-gnu/crti.o"
> +// CHECK-DEBIAN-SPARC32:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/crtbegin.o"
> +// CHECK-DEBIAN-SPARC32: "-L[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9"
> +// CHECK-DEBIAN-SPARC32:
> "-L[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../sparc-linux-gnu"
> +// CHECK-DEBIAN-SPARC32:
> "-L[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../lib"
> +// CHECK-DEBIAN-SPARC32: "-L[[SYSROOT]]/lib/sparc-linux-gnu"
> +// CHECK-DEBIAN-SPARC32: "-L[[SYSROOT]]/usr/lib/sparc-linux-gnu"
> +// CHECK-DEBIAN-SPARC32: "-L[[SYSROOT]]/lib"
> +// CHECK-DEBIAN-SPARC32: "-L[[SYSROOT]]/usr/lib"
> +// CHECK-DEBIAN-SPARC32:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/crtend.o"
> +// CHECK-DEBIAN-SPARC32:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../sparc-linux-gnu/crtn.o"
> +//
> +// Check linker paths on Debian 8 / Sparc, with the oldstyle multilib
> packages
> +// RUN: %clang -no-canonical-prefixes -m64 %s -### -o %t.o 2>&1 \
> +// RUN: --target=sparc-linux-gnu \
> +// RUN: --gcc-toolchain="" \
> +// RUN: --sysroot=%S/Inputs/debian_8_sparc_multilib_tree \
> +// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-SPARC32-LIB64 %s
> +// CHECK-DEBIAN-SPARC32-LIB64: "{{.*}}ld{{(.exe)?}}"
> "--sysroot=[[SYSROOT:[^"]+]]"
> +// CHECK-DEBIAN-SPARC32-LIB64:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../lib64/crt1.o"
> +// CHECK-DEBIAN-SPARC32-LIB64:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../lib64/crti.o"
> +// CHECK-DEBIAN-SPARC32-LIB64:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/64/crtbegin.o"
> +// CHECK-DEBIAN-SPARC32-LIB64:
> "-L[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/64"
> +// CHECK-DEBIAN-SPARC32-LIB64:
> "-L[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../lib64"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-L[[SYSROOT]]/lib/../lib64"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-L[[SYSROOT]]/usr/lib/../lib64"
> +// CHECK-DEBIAN-SPARC32-LIB64:
> "-L[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-L[[SYSROOT]]/lib"
> +// CHECK-DEBIAN-SPARC32-LIB64: "-L[[SYSROOT]]/usr/lib"
> +// CHECK-DEBIAN-SPARC32-LIB64:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/64/crtend.o"
> +// CHECK-DEBIAN-SPARC32-LIB64:
> "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.9/../../../../lib64/crtn.o"
> +//
> +// Check linker paths on Debian 8 / Sparc64
> +// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
> +// RUN: --target=sparc64-linux-gnu \
> +// RUN: --gcc-toolchain="" \
> +// RUN: --sysroot=%S/Inputs/debian_8_sparc64_tree \
> +// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-SPARC64 %s
> +// CHECK-DEBIAN-SPARC64: "{{.*}}ld{{(.exe)?}}"
> "--sysroot=[[SYSROOT:[^"]+]]"
> +// CHECK-DEBIAN-SPARC64:
> "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/../../../sparc64-linux-gnu/crt1.o"
> +// CHECK-DEBIAN-SPARC64:
> "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/../../../sparc64-linux-gnu/crti.o"
> +// CHECK-DEBIAN-SPARC64:
> "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/crtbegin.o"
> +// CHECK-DEBIAN-SPARC64: "-L[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9"
> +// CHECK-DEBIAN-SPARC64:
> "-L[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/../../../sparc64-linux-gnu"
> +// CHECK-DEBIAN-SPARC64: "-L[[SYSROOT]]/lib/sparc64-linux-gnu"
> +// CHECK-DEBIAN-SPARC64: "-L[[SYSROOT]]/lib/../lib64"
> +// CHECK-DEBIAN-SPARC64: "-L[[SYSROOT]]/usr/lib/sparc64-linux-gnu"
> +// CHECK-DEBIAN-SPARC64:
> "-L[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/../../.."
> +// CHECK-DEBIAN-SPARC64: "-L[[SYSROOT]]/lib"
> +// CHECK-DEBIAN-SPARC64: "-L[[SYSROOT]]/usr/lib"
> +// CHECK-DEBIAN-SPARC64:
> "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/crtend.o"
> +// CHECK-DEBIAN-SPARC64:
> "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.9/../../../sparc64-linux-gnu/crtn.o"
> +//
> // Test linker invocation on Android.
> // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
> // RUN: --target=arm-linux-androideabi \
>
More information about the cfe-commits
mailing list