|
2 | 2 | ! invocation. These libraries are added on top of other standard runtime
|
3 | 3 | ! libraries that the Clang driver will include.
|
4 | 4 |
|
5 |
| -! RUN: %flang -### -target ppc64le-linux-gnu %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,GNU |
6 |
| -! RUN: %flang -### -target aarch64-apple-darwin %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,DARWIN |
7 |
| -! RUN: %flang -### -target x86_64-windows-gnu %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,MINGW |
| 5 | +! RUN: %flang -### --target=ppc64le-linux-gnu %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,UNIX |
| 6 | +! RUN: %flang -### --target=aarch64-apple-darwin %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,DARWIN |
| 7 | +! RUN: %flang -### --target=sparc-sun-solaris2.11 %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,UNIX |
| 8 | +! RUN: %flang -### --target=x86_64-windows-gnu %S/Inputs/hello.f90 2>&1 | FileCheck %s --check-prefixes=CHECK,MINGW |
8 | 9 |
|
9 | 10 | ! NOTE: Clang's driver library, clangDriver, usually adds 'libcmt' and
|
10 | 11 | ! 'oldnames' on Windows, but they are not needed when compiling
|
11 | 12 | ! Fortran code and they might bring in additional dependencies.
|
12 | 13 | ! Make sure they're not added.
|
13 |
| -! 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 |
| 14 | +! 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 |
14 | 15 |
|
15 | 16 | ! Compiler invocation to generate the object file
|
16 | 17 | ! CHECK-LABEL: {{.*}} "-emit-obj"
|
|
21 | 22 | ! run on any other platform, such as Windows that use a .exe
|
22 | 23 | ! suffix. Clang's driver will try to resolve the path to the ld
|
23 | 24 | ! executable and may find the GNU linker from MinGW or Cygwin.
|
24 |
| -! GNU-LABEL: "{{.*}}ld{{(\.exe)?}}" |
25 |
| -! GNU-SAME: "[[object_file]]" |
26 |
| -! GNU-SAME: -lFortran_main |
27 |
| -! GNU-SAME: -lFortranRuntime |
28 |
| -! GNU-SAME: -lFortranDecimal |
29 |
| -! GNU-SAME: -lm |
| 25 | +! UNIX-LABEL: "{{.*}}ld{{(\.exe)?}}" |
| 26 | +! UNIX-SAME: "[[object_file]]" |
| 27 | +! UNIX-SAME: "-lFortran_main" "-lFortranRuntime" "-lFortranDecimal" "-lm" |
30 | 28 |
|
31 | 29 | ! DARWIN-LABEL: "{{.*}}ld{{(\.exe)?}}"
|
32 | 30 | ! DARWIN-SAME: "[[object_file]]"
|
|
0 commit comments