1*7d8375b8SGábor Horváth // Test the output of -print-libgcc-file-name on Darwin. 2*7d8375b8SGábor Horváth 3*7d8375b8SGábor Horváth // 4*7d8375b8SGábor Horváth // All platforms 5*7d8375b8SGábor Horváth // 6*7d8375b8SGábor Horváth 7*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 8*7d8375b8SGábor Horváth // RUN: --target=x86_64-apple-macos \ 9*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 10*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-MACOS %s 11*7d8375b8SGábor Horváth // CHECK-CLANGRT-MACOS: libclang_rt.osx.a 12*7d8375b8SGábor Horváth 13*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 14*7d8375b8SGábor Horváth // RUN: --target=arm64-apple-ios \ 15*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 16*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-IOS %s 17*7d8375b8SGábor Horváth // CHECK-CLANGRT-IOS: libclang_rt.ios.a 18*7d8375b8SGábor Horváth 19*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 20*7d8375b8SGábor Horváth // RUN: --target=arm64-apple-watchos \ 21*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 22*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-WATCHOS %s 23*7d8375b8SGábor Horváth // CHECK-CLANGRT-WATCHOS: libclang_rt.watchos.a 24*7d8375b8SGábor Horváth 25*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 26*7d8375b8SGábor Horváth // RUN: --target=arm64-apple-tvos \ 27*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 28*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-TVOS %s 29*7d8375b8SGábor Horváth // CHECK-CLANGRT-TVOS: libclang_rt.tvos.a 30*7d8375b8SGábor Horváth 31*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 32*7d8375b8SGábor Horváth // RUN: --target=arm64-apple-driverkit \ 33*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 34*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-DRIVERKIT %s 35*7d8375b8SGábor Horváth // CHECK-CLANGRT-DRIVERKIT: libclang_rt.driverkit.a 36*7d8375b8SGábor Horváth 37*7d8375b8SGábor Horváth // 38*7d8375b8SGábor Horváth // Simulators 39*7d8375b8SGábor Horváth // 40*7d8375b8SGábor Horváth 41*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 42*7d8375b8SGábor Horváth // RUN: --target=arm64-apple-ios-simulator \ 43*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 44*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-IOS-SIMULATOR %s 45*7d8375b8SGábor Horváth // CHECK-CLANGRT-IOS-SIMULATOR: libclang_rt.iossim.a 46*7d8375b8SGábor Horváth 47*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 48*7d8375b8SGábor Horváth // RUN: --target=arm64-apple-watchos-simulator \ 49*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 50*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-WATCHOS-SIMULATOR %s 51*7d8375b8SGábor Horváth // CHECK-CLANGRT-WATCHOS-SIMULATOR: libclang_rt.watchossim.a 52*7d8375b8SGábor Horváth 53*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 54*7d8375b8SGábor Horváth // RUN: --target=arm64-apple-tvos-simulator \ 55*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 56*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-TVOS-SIMULATOR %s 57*7d8375b8SGábor Horváth // CHECK-CLANGRT-TVOS-SIMULATOR: libclang_rt.tvossim.a 58*7d8375b8SGábor Horváth 59*7d8375b8SGábor Horváth // Check the sanitizer and profile variants 60*7d8375b8SGábor Horváth // While the driver also links in sanitizer-specific dylibs, the result of 61*7d8375b8SGábor Horváth // -print-libgcc-file-name is the path of the basic compiler-rt library. 62*7d8375b8SGábor Horváth 63*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 64*7d8375b8SGábor Horváth // RUN: -fsanitize=address --target=x86_64-apple-macos \ 65*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 66*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-MACOS-SAN %s 67*7d8375b8SGábor Horváth // CHECK-CLANGRT-MACOS-SAN: libclang_rt.osx.a 68*7d8375b8SGábor Horváth 69*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 70*7d8375b8SGábor Horváth // RUN: -fsanitize=address --target=arm64-apple-ios \ 71*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 72*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-IOS-SAN %s 73*7d8375b8SGábor Horváth // CHECK-CLANGRT-IOS-SAN: libclang_rt.ios.a 74*7d8375b8SGábor Horváth 75*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 76*7d8375b8SGábor Horváth // RUN: -fsanitize=address --target=arm64-apple-watchos \ 77*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 78*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-WATCHOS-SAN %s 79*7d8375b8SGábor Horváth // CHECK-CLANGRT-WATCHOS-SAN: libclang_rt.watchos.a 80*7d8375b8SGábor Horváth 81*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 82*7d8375b8SGábor Horváth // RUN: -fsanitize=address --target=arm64-apple-tvos \ 83*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 84*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-TVOS-SAN %s 85*7d8375b8SGábor Horváth // CHECK-CLANGRT-TVOS-SAN: libclang_rt.tvos.a 86*7d8375b8SGábor Horváth 87*7d8375b8SGábor Horváth // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name \ 88*7d8375b8SGábor Horváth // RUN: -fsanitize=address --target=arm64-apple-driverkit \ 89*7d8375b8SGábor Horváth // RUN: -resource-dir=%S/Inputs/resource_dir 2>&1 \ 90*7d8375b8SGábor Horváth // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-DRIVERKIT-SAN %s 91*7d8375b8SGábor Horváth // CHECK-CLANGRT-DRIVERKIT-SAN: libclang_rt.driverkit.a 92