|
12 | 12 | ! RUN: %flang -### --target=x86_64-unknown-haiku %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,HAIKU
|
13 | 13 | ! RUN: %flang -### --target=x86_64-windows-gnu %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,MINGW
|
14 | 14 |
|
15 |
| -! NOTE: Clang's driver library, clangDriver, usually adds 'libcmt' and |
16 |
| -! 'oldnames' on Windows, but they are not needed when compiling |
17 |
| -! Fortran code and they might bring in additional dependencies. |
18 |
| -! Make sure they're not added. |
19 |
| -! RUN: %flang -### --target=aarch64-windows-msvc -fuse-ld= %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,MSVC --implicit-check-not libcmt --implicit-check-not oldnames |
| 15 | +! NOTE: Clang's driver library, clangDriver, usually adds 'oldnames' on Windows, |
| 16 | +! but it is not needed when compiling Fortran code and they might bring in |
| 17 | +! additional dependencies. Make sure its not added. |
| 18 | +! RUN: %flang -### --target=aarch64-windows-msvc -fuse-ld= %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,MSVC --implicit-check-not oldnames |
| 19 | +! RUN: %flang -### --target=aarch64-windows-msvc -fms-runtime-lib=static_dbg -fuse-ld= %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,MSVC-DEBUG --implicit-check-not oldnames |
| 20 | +! RUN: %flang -### --target=aarch64-windows-msvc -fms-runtime-lib=dll -fuse-ld= %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,MSVC-DLL --implicit-check-not oldnames |
| 21 | +! RUN: %flang -### --target=aarch64-windows-msvc -fms-runtime-lib=dll_dbg -fuse-ld= %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,MSVC-DLL-DEBUG --implicit-check-not oldnames |
20 | 22 |
|
21 | 23 | ! Compiler invocation to generate the object file
|
22 | 24 | ! CHECK-LABEL: {{.*}} "-emit-obj"
|
|
52 | 54 | ! (lld-)link.exe on Windows platforms. The suffix may not be added
|
53 | 55 | ! when the executable is not found or on non-Windows platforms.
|
54 | 56 | ! MSVC-LABEL: link
|
55 |
| -! MSVC-SAME: Fortran_main.lib |
56 |
| -! MSVC-SAME: FortranRuntime.lib |
57 |
| -! MSVC-SAME: FortranDecimal.lib |
| 57 | +! MSVC-SAME: /DEFAULTLIB:clang_rt.builtins-aarch64.lib |
| 58 | +! MSVC-SAME: /DEFAULTLIB:libcmt |
| 59 | +! MSVC-SAME: Fortran_main.static.lib |
| 60 | +! MSVC-SAME: FortranRuntime.static.lib |
| 61 | +! MSVC-SAME: FortranDecimal.static.lib |
58 | 62 | ! MSVC-SAME: /subsystem:console
|
59 | 63 | ! MSVC-SAME: "[[object_file]]"
|
| 64 | + |
| 65 | +! MSVC-DEBUG-LABEL: link |
| 66 | +! MSVC-DEBUG-SAME: /DEFAULTLIB:clang_rt.builtins-aarch64.lib |
| 67 | +! MSVC-DEBUG-SAME: /DEFAULTLIB:libcmtd |
| 68 | +! MSVC-DEBUG-SAME: Fortran_main.static_dbg.lib |
| 69 | +! MSVC-DEBUG-SAME: FortranRuntime.static_dbg.lib |
| 70 | +! MSVC-DEBUG-SAME: FortranDecimal.static_dbg.lib |
| 71 | +! MSVC-DEBUG-SAME: /subsystem:console |
| 72 | +! MSVC-DEBUG-SAME: "[[object_file]]" |
| 73 | + |
| 74 | +! MSVC-DLL-LABEL: link |
| 75 | +! MSVC-DLL-SAME: /DEFAULTLIB:clang_rt.builtins-aarch64.lib |
| 76 | +! MSVC-DLL-SAME: /DEFAULTLIB:msvcrt |
| 77 | +! MSVC-DLL-SAME: Fortran_main.dynamic.lib |
| 78 | +! MSVC-DLL-SAME: FortranRuntime.dynamic.lib |
| 79 | +! MSVC-DLL-SAME: FortranDecimal.dynamic.lib |
| 80 | +! MSVC-DLL-SAME: /subsystem:console |
| 81 | +! MSVC-DLL-SAME: "[[object_file]]" |
| 82 | + |
| 83 | +! MSVC-DLL-DEBUG-LABEL: link |
| 84 | +! MSVC-DLL-DEBUG-SAME: /DEFAULTLIB:clang_rt.builtins-aarch64.lib |
| 85 | +! MSVC-DLL-DEBUG-SAME: /DEFAULTLIB:msvcrtd |
| 86 | +! MSVC-DLL-DEBUG-SAME: Fortran_main.dynamic_dbg.lib |
| 87 | +! MSVC-DLL-DEBUG-SAME: FortranRuntime.dynamic_dbg.lib |
| 88 | +! MSVC-DLL-DEBUG-SAME: FortranDecimal.dynamic_dbg.lib |
| 89 | +! MSVC-DLL-DEBUG-SAME: /subsystem:console |
| 90 | +! MSVC-DLL-DEBUG-SAME: "[[object_file]]" |
0 commit comments