[clang] Add a testcase for riscv64-linux-android triple (PR #116892)
Dan Albert via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 11:51:14 PST 2024
================
@@ -311,3 +311,19 @@
// CHECK-X86_64-GCC: Found candidate GCC installation: {{.*}}i686-linux-android{{[/\\]}}4.9
// CHECK-X86_64-GCC-NEXT: Found candidate GCC installation: {{.*}}x86_64-linux-android{{[/\\]}}4.9
// CHECK-X86_64-GCC-NEXT: Selected GCC installation: {{.*}}x86_64-linux-android{{[/\\]}}4.9
+//
+// RUN: %clang -### %s 2>&1 \
+// RUN: --target=riscv64-linux-android \
+// RUN: -march=rv64i \
+// RUN: --gcc-toolchain=%S/Inputs/basic_android_ndk_tree \
----------------
DanAlbert wrote:
The `CHECK-ARM64` variant of the test has it. I think it's so the test can find the linker? As long as this test is essentially a copy of that with the target and arch names swapped out, it's at least not wronger than the existing tests.
https://github.com/llvm/llvm-project/pull/116892
More information about the cfe-commits
mailing list