https://github.com/hiraditya created https://github.com/llvm/llvm-project/pull/116892
None >From c53b4e4f5bba3774838cb5dd49500357b9e0233b Mon Sep 17 00:00:00 2001 From: AdityaK <hiradi...@msn.com> Date: Tue, 19 Nov 2024 15:54:16 -0800 Subject: [PATCH] Add a testcase for riscv64-linux-android triple --- clang/test/Driver/android-ndk-standalone.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/clang/test/Driver/android-ndk-standalone.cpp b/clang/test/Driver/android-ndk-standalone.cpp index 2670a6707a96c9..3d18244c77107b 100644 --- a/clang/test/Driver/android-ndk-standalone.cpp +++ b/clang/test/Driver/android-ndk-standalone.cpp @@ -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 \ +// RUN: --sysroot=%S/Inputs/basic_android_ndk_tree/sysroot \ +// RUN: | FileCheck --check-prefix=CHECK-RISCV %s +// CHECK-RISCV: "-cc1" +// CHECK-RISCV: "-internal-isystem" "{{.*}}/include/c++/v1" +// CHECK-RISCV: "-internal-isystem" "{{.*}}/lib/clang/{{..}}/include" +// CHECK-RISCV: "-internal-isystem" "{{.*}}/sysroot/usr/local/include" +// CHECK-RISCV: "-internal-externc-isystem" "{{.*}}/sysroot/include" +// CHECK-RISCV: "-internal-externc-isystem" "{{.*}}/sysroot/usr/include" +// CHECK-RISCV: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" +// CHECK-RISCV: "-L{{.*}}/sysroot/usr/lib" +// CHECK-RISCV: "{{.*}}/lib/riscv64-unknown-linux-android/libclang_rt.builtins.a" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits