2014-10-26 04:49:12 +08:00
|
|
|
// RUN: %clang -### -target armv7-windows-itanium --sysroot %S/Inputs/Windows/ARM/8.1 -B %S/Inputs/Windows/ARM/8.1/usr/bin -o /dev/null %s 2>&1 \
|
2014-10-24 11:13:37 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-BASIC
|
|
|
|
|
2014-10-28 11:15:02 +08:00
|
|
|
// CHECK-BASIC: armv7-windows-itanium-ld" "--sysroot={{.*}}/Inputs/Windows/ARM/8.1" "-m" "thumb2pe" "-Bdynamic" "--entry" "mainCRTStartup" "--allow-multiple-definition" "-o" "{{[^"]*}}" "{{.*}}/Inputs/Windows/ARM/8.1/usr/lib/crtbegin.obj" "-L{{.*}}/Inputs/Windows/ARM/8.1/usr/lib" "-L{{.*}}/Inputs/Windows/ARM/8.1/usr/lib/gcc" "{{.*}}.o" "-lmsvcrt" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
2014-10-24 11:13:37 +08:00
|
|
|
|
2014-10-26 04:49:12 +08:00
|
|
|
// RUN: %clang -### -target armv7-windows-itanium --sysroot %s/Inputs/Windows/ARM/8.1 -B %S/Inputs/Windows/ARM/8.1/usr/bin -rtlib=compiler-rt -o /dev/null %s 2>&1 \
|
2014-10-24 11:13:37 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-RTLIB
|
|
|
|
|
2014-12-31 02:55:37 +08:00
|
|
|
// CHECK-RTLIB: armv7-windows-itanium-ld" "--sysroot={{.*}}/Inputs/Windows/ARM/8.1" "-m" "thumb2pe" "-Bdynamic" "--entry" "mainCRTStartup" "--allow-multiple-definition" "-o" "{{[^"]*}}" "{{.*}}/Inputs/Windows/ARM/8.1/usr/lib/crtbegin.obj" "-L{{.*}}/Inputs/Windows/ARM/8.1/usr/lib" "-L{{.*}}/Inputs/Windows/ARM/8.1/usr/lib/gcc" "{{.*}}.o" "-lmsvcrt" "{{.*[\\/]}}clang_rt.builtins-arm.lib"
|
2014-10-24 11:13:37 +08:00
|
|
|
|
2014-10-26 04:49:12 +08:00
|
|
|
// RUN: %clang -### -target armv7-windows-itanium --sysroot %S/Inputs/Windows/ARM/8.1 -B %S/Inputs/Windows/ARM/8.1/usr/bin -rtlib=compiler-rt -stdlib=libc++ -o /dev/null %s 2>&1 \
|
2014-10-24 11:13:37 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-C-LIBCXX
|
|
|
|
|
2014-12-31 02:55:37 +08:00
|
|
|
// CHECK-C-LIBCXX: armv7-windows-itanium-ld" "--sysroot={{.*}}/Inputs/Windows/ARM/8.1" "-m" "thumb2pe" "-Bdynamic" "--entry" "mainCRTStartup" "--allow-multiple-definition" "-o" "{{[^"]*}}" "{{.*}}/Inputs/Windows/ARM/8.1/usr/lib/crtbegin.obj" "{{.*}}.o" "-lmsvcrt" "{{.*[\\/]}}clang_rt.builtins-arm.lib"
|
2014-10-24 11:13:37 +08:00
|
|
|
|
2014-10-26 04:49:12 +08:00
|
|
|
// RUN: %clangxx -### -target armv7-windows-itanium --sysroot %S/Inputs/Windows/ARM/8.1 -B %S/Inputs/Windows/ARM/8.1/usr/bin -rtlib=compiler-rt -stdlib=libc++ -o /dev/null %s 2>&1 \
|
2014-10-24 11:13:37 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-LIBCXX
|
|
|
|
|
2014-12-31 02:55:37 +08:00
|
|
|
// CHECK-LIBCXX: armv7-windows-itanium-ld" "--sysroot={{.*}}/Inputs/Windows/ARM/8.1" "-m" "thumb2pe" "-Bdynamic" "--entry" "mainCRTStartup" "--allow-multiple-definition" "-o" "{{[^"]*}}" "{{.*}}/Inputs/Windows/ARM/8.1/usr/lib/crtbegin.obj" "{{.*}}.o" "-lc++" "-lmsvcrt" "{{.*[\\/]}}clang_rt.builtins-arm.lib"
|
2014-10-24 11:13:37 +08:00
|
|
|
|
2014-10-26 04:49:12 +08:00
|
|
|
// RUN: %clang -### -target armv7-windows-itanium --sysroot %S/Inputs/Windows/ARM/8.1 -B %S/Inputs/Windows/ARM/8.1/usr/bin -shared -rtlib=compiler-rt -stdlib=libc++ -o shared.dll %s 2>&1 \
|
2014-10-24 11:13:37 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-SHARED
|
|
|
|
|
2014-12-31 02:55:37 +08:00
|
|
|
// CHECK-SHARED: armv7-windows-itanium-ld" "--sysroot={{.*}}/Inputs/Windows/ARM/8.1" "-m" "thumb2pe" "-shared" "-Bdynamic" "--enable-auto-image-base" "--entry" "_DllMainCRTStartup" "--allow-multiple-definition" "-o" "shared.dll" "--out-implib" "shared.lib" "{{.*}}/Inputs/Windows/ARM/8.1/usr/lib/crtbeginS.obj" "{{.*}}.o" "-lmsvcrt" "{{.*[\\/]}}clang_rt.builtins-arm.lib"
|
2014-10-24 11:13:37 +08:00
|
|
|
|
2014-10-26 04:49:12 +08:00
|
|
|
// RUN: %clang -### -target armv7-windows-itanium --sysroot %s/Inputs/Windows/ARM/8.1 -B %S/Inputs/Windows/ARM/8.1/usr/bin -shared -rtlib=compiler-rt -stdlib=libc++ -nostartfiles -o shared.dll %s 2>&1 \
|
2014-10-24 11:13:37 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-NOSTARTFILES
|
|
|
|
|
2014-12-31 02:55:37 +08:00
|
|
|
// CHECK-NOSTARTFILES: armv7-windows-itanium-ld" "--sysroot={{.*}}/Inputs/Windows/ARM/8.1" "-m" "thumb2pe" "-shared" "-Bdynamic" "--enable-auto-image-base" "--entry" "_DllMainCRTStartup" "--allow-multiple-definition" "-o" "shared.dll" "--out-implib" "shared.lib" "{{.*}}.o" "-lmsvcrt" "{{.*[\\/]}}clang_rt.builtins-arm.lib"
|
2014-10-24 11:13:37 +08:00
|
|
|
|
2014-10-26 04:49:12 +08:00
|
|
|
// RUN: %clang -### -target armv7-windows-itanium --sysroot %S/Inputs/Windows/ARM/8.1 -B %S/Inputs/Windows/ARM/8.1/usr/bin -shared -rtlib=compiler-rt -stdlib=libc++ -nostartfiles -nodefaultlibs -o shared.dll %s 2>&1 \
|
2014-10-24 11:13:37 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-STANDALONE
|
|
|
|
|
2014-10-28 11:15:02 +08:00
|
|
|
// CHECK-STANDALONE: armv7-windows-itanium-ld" "--sysroot={{.*}}/Inputs/Windows/ARM/8.1" "-m" "thumb2pe" "-shared" "-Bdynamic" "--enable-auto-image-base" "--entry" "_DllMainCRTStartup" "--allow-multiple-definition" "-o" "shared.dll" "--out-implib" "shared.lib" "{{.*}}.o"
|
2014-10-24 11:13:37 +08:00
|
|
|
|
2014-11-20 01:59:00 +08:00
|
|
|
// RUN: %clang -### -target armv7-windows-itanium --sysroot %S/Inputs/Windows/ARM/8.1 -B %/Inputs/Windows/ARM/8.1/usr/bin -shared -o shared.dll -x c++ %s 2>&1 \
|
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-LIBSTDCXX
|
|
|
|
|
|
|
|
// CHECK-LIBSTDCXX: "-internal-isystem" "{{.*}}/usr/include/c++" "-internal-isystem" "{{.*}}/usr/include/c++/armv7--windows-itanium" "-internal-isystem" "{{.*}}/usr/include/c++/backwards"
|
|
|
|
|
2015-10-28 12:45:58 +08:00
|
|
|
// RUN: %clang -### -target armv7-windows-itanium --sysroot %S/Inputs/Windows/ARM/8.1 -B %S/Inputs/Windows/ARM/8.1/usr/bin -fuse-ld=lld-link2 -shared -o shared.dll -x c++ %s 2>&1 \
|
|
|
|
// RUN: | FileCheck %s --check-prefix CHECK-FUSE-LD
|
|
|
|
// CHECK-FUSE-LD: "{{.*}}lld-link2"
|
|
|
|
|