Skip to content

Commit 4303d5a

Browse files
committed
Rename to libflang_rt.<component>.(a|so)
1 parent 6bb9de2 commit 4303d5a

File tree

24 files changed

+100
-82
lines changed

24 files changed

+100
-82
lines changed

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ void tools::addOpenMPHostOffloadingArgs(const Compilation &C,
13211321
/// Add Fortran runtime libs
13221322
void tools::addFortranRuntimeLibs(const ToolChain &TC, const ArgList &Args,
13231323
llvm::opt::ArgStringList &CmdArgs) {
1324-
// Link flang_rt
1324+
// Link flang_rt.runtime
13251325
// These are handled earlier on Windows by telling the frontend driver to
13261326
// add the correct libraries to link against as dependents in the object
13271327
// file.
@@ -1330,14 +1330,14 @@ void tools::addFortranRuntimeLibs(const ToolChain &TC, const ArgList &Args,
13301330
F128LibName.consume_front_insensitive("lib");
13311331
if (!F128LibName.empty()) {
13321332
bool AsNeeded = !TC.getTriple().isOSAIX();
1333-
CmdArgs.push_back("-lFortranFloat128Math");
1333+
CmdArgs.push_back("-lflang_rt.quadmath");
13341334
if (AsNeeded)
13351335
addAsNeededOption(TC, Args, CmdArgs, /*as_needed=*/true);
13361336
CmdArgs.push_back(Args.MakeArgString("-l" + F128LibName));
13371337
if (AsNeeded)
13381338
addAsNeededOption(TC, Args, CmdArgs, /*as_needed=*/false);
13391339
}
1340-
CmdArgs.push_back("-lflang_rt");
1340+
CmdArgs.push_back("-lflang_rt.runtime");
13411341
addArchSpecificRPath(TC, Args, CmdArgs);
13421342
}
13431343

clang/lib/Driver/ToolChains/Flang.cpp

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,15 @@ static void processVSRuntimeLibrary(const ToolChain &TC, const ArgList &Args,
345345
ArgStringList &CmdArgs) {
346346
assert(TC.getTriple().isKnownWindowsMSVCEnvironment() &&
347347
"can only add VS runtime library on Windows!");
348-
// if -fno-fortran-main has been passed, skip linking Fortran_main.a
349-
if (TC.getTriple().isKnownWindowsMSVCEnvironment()) {
350-
CmdArgs.push_back(Args.MakeArgString(
351-
"--dependent-lib=" + TC.getCompilerRTBasename(Args, "builtins")));
352-
}
348+
349+
// Flang/Clang (including clang-cl) -compiled programs targeting the MSVC ABI
350+
// should only depend on msv(u)crt. LLVM still emits libgcc/compiler-rt
351+
// functions in some cases like 128-bit integer math (__udivti3, __modti3,
352+
// __fixsfti, __floattidf, ...) that msvc does not support. We are injecting a
353+
// dependency to Compiler-RT's builtin library where these are implemented.
354+
CmdArgs.push_back(Args.MakeArgString(
355+
"--dependent-lib=" + TC.getCompilerRTBasename(Args, "builtins")));
356+
353357
unsigned RTOptionID = options::OPT__SLASH_MT;
354358
if (auto *rtl = Args.getLastArg(options::OPT_fms_runtime_lib_EQ)) {
355359
RTOptionID = llvm::StringSwitch<unsigned>(rtl->getValue())
@@ -363,26 +367,26 @@ static void processVSRuntimeLibrary(const ToolChain &TC, const ArgList &Args,
363367
case options::OPT__SLASH_MT:
364368
CmdArgs.push_back("-D_MT");
365369
CmdArgs.push_back("--dependent-lib=libcmt");
366-
CmdArgs.push_back("--dependent-lib=flang_rt.static.lib");
370+
CmdArgs.push_back("--dependent-lib=flang_rt.runtime.static.lib");
367371
break;
368372
case options::OPT__SLASH_MTd:
369373
CmdArgs.push_back("-D_MT");
370374
CmdArgs.push_back("-D_DEBUG");
371375
CmdArgs.push_back("--dependent-lib=libcmtd");
372-
CmdArgs.push_back("--dependent-lib=flang_rt.static_dbg.lib");
376+
CmdArgs.push_back("--dependent-lib=flang_rt.runtime.static_dbg.lib");
373377
break;
374378
case options::OPT__SLASH_MD:
375379
CmdArgs.push_back("-D_MT");
376380
CmdArgs.push_back("-D_DLL");
377381
CmdArgs.push_back("--dependent-lib=msvcrt");
378-
CmdArgs.push_back("--dependent-lib=flang_rt.dynamic.lib");
382+
CmdArgs.push_back("--dependent-lib=flang_rt.runtime.dynamic.lib");
379383
break;
380384
case options::OPT__SLASH_MDd:
381385
CmdArgs.push_back("-D_MT");
382386
CmdArgs.push_back("-D_DEBUG");
383387
CmdArgs.push_back("-D_DLL");
384388
CmdArgs.push_back("--dependent-lib=msvcrtd");
385-
CmdArgs.push_back("--dependent-lib=flang_rt.dynamic_dbg.lib");
389+
CmdArgs.push_back("--dependent-lib=flang_rt.runtime.dynamic_dbg.lib");
386390
break;
387391
}
388392
}

flang/cmake/modules/AddFlang.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function(add_flang_library name)
5757
set(LIBTYPE SHARED)
5858
elseif(ARG_STATIC)
5959
# If BUILD_SHARED_LIBS and ARG_STATIC are both set, llvm_add_library prioritizes STATIC.
60-
# This is required behavior for libFortranFloat128Math.
60+
# This is required behavior for libflang_rt.quadmath.
6161
set(LIBTYPE STATIC)
6262
else()
6363
# Let llvm_add_library decide, taking BUILD_SHARED_LIBS into account.

flang/docs/FlangDriver.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,18 @@ like this:
175175

176176
```
177177
$ flang -v -o example example.o
178-
"/usr/bin/ld" [...] example.o [...] "-lflang_rt" [...]
178+
"/usr/bin/ld" [...] example.o [...] "-lflang_rt.runtime" [...]
179179
```
180180

181181
The automatically added libraries are:
182182

183-
* `flang_rt`: Provides most of the Flang runtime library.
183+
* `flang_rt.runtime`: Provides most of the Flang runtime library.
184184

185185
If the code is C/C++ based and invokes Fortran routines, one can either use Clang
186186
or Flang as the linker driver. If Clang is used, it will automatically all
187187
required runtime libraries needed by C++ (e.g., for STL) to the linker invocation.
188188
In this case, one has to explicitly provide the Fortran runtime library
189-
`flang_rt`. An alternative is to use Flang to link.
189+
`flang_rt.runtime`. An alternative is to use Flang to link.
190190
In this case, it may be required to explicitly supply C++ runtime libraries.
191191

192192
On Darwin, the logical root where the system libraries are located (sysroot)

flang/docs/GettingStarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ The same set of CMake variables works for Flang in-tree build.
309309
One may provide optional CMake variables to customize the build. Available options:
310310

311311
* `-DFLANG_RUNTIME_F128_MATH_LIB=libquadmath`: enables build of
312-
`FortranFloat128Math` library that provides `REAL(16)` math APIs
312+
`flang_rt.quadmath` library that provides `REAL(16)` math APIs
313313
for intrinsics such as `SIN`, `COS`, etc. GCC `libquadmath`'s header file
314314
`quadmath.h` must be available to the build compiler.
315315
[More details](Real16MathSupport.md).

flang/docs/OpenACC-descriptor-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ The implementation's behavior may be described as (OpenACC 2.7.2):
427427
428428
All the "is-present" checks and the data actions for the auxiliary pointers must be performed atomically with regards to the present counters bookkeeping.
429429
430-
The API relies on the primitives provided by `liboffload`, so it is provided by a new F18 runtime library, e.g. `FortranOffloadRuntime`, that depends on `flang_rt` and `liboffload`. The F18 driver adds `FortranOffloadRuntime` for linking under `-fopenacc`/`-fopenmp` (and maybe additional switches like `-fopenmp-targets`).
430+
The API relies on the primitives provided by `liboffload`, so it is provided by a new F18 runtime library, e.g. `FortranOffloadRuntime`, that depends on `flang_rt.runtime` and `liboffload`. The F18 driver adds `FortranOffloadRuntime` for linking under `-fopenacc`/`-fopenmp` (and maybe additional switches like `-fopenmp-targets`).
431431
432432
## TODOs:
433433

flang/docs/Real16MathSupport.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ To support most `REAL(16)` (i.e. 128-bit float) math intrinsics Flang relies
1212
on third-party libraries providing the implementation.
1313

1414
`-DFLANG_RUNTIME_F128_MATH_LIB=libquadmath` CMake option can be used
15-
to build `FortranFloat128Math` library that has unresolved references
15+
to build `libflang_rt.quadmath` library that has unresolved references
1616
to GCC `libquadmath` library. A Flang driver built with this option
17-
will automatically link `FortranFloat128Math` and `libquadmath` libraries
17+
will automatically link `libflang_rt.quadmath` and `libquadmath` libraries
1818
to any Fortran program. This implies that `libquadmath` library
1919
has to be available in the standard library paths, so that linker
2020
can find it. The `libquadmath` library installation into Flang project

flang/docs/ReleaseNotes.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ page](https://llvm.org/releases/).
3636

3737
## Build System Changes
3838

39-
* FortranRuntime has been renamed to `flang_rt`.
39+
* The FortranRuntime library has been renamed to `flang_rt.runtime`.
40+
41+
* The FortranFloat128Math library has been renamed to `flang_rt.quadmath`.
42+
43+
* The CufRuntime_cuda_${version} library has been renamed to
44+
`flang_rt.cuda_${version}`.
4045

4146
## New Issues Found
4247

flang/examples/ExternalHelloWorld/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ add_llvm_example(external-hello-world
55

66
target_link_libraries(external-hello-world
77
PRIVATE
8-
flang_rt
8+
flang_rt.runtime
99
)

flang/lib/Optimizer/Builder/IntrinsicCall.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,8 @@ prettyPrintIntrinsicName(fir::FirOpBuilder &builder, mlir::Location loc,
808808
// Generate a call to the Fortran runtime library providing
809809
// support for 128-bit float math.
810810
// On 'HAS_LDBL128' targets the implementation
811-
// is provided by flang_rt, otherwise, it is done via
812-
// FortranFloat128Math library. In the latter case the compiler
811+
// is provided by flang_rt, otherwise, it is done via the
812+
// libflang_rt.quadmath library. In the latter case the compiler
813813
// has to be built with FLANG_RUNTIME_F128_MATH_LIB to guarantee
814814
// proper linking actions in the driver.
815815
static mlir::Value genLibF128Call(fir::FirOpBuilder &builder,

flang/runtime/CMakeLists.txt

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ set(supported_files
239239
enable_cuda_compilation(flang_rt "${supported_files}")
240240
enable_omp_offload_compilation("${supported_files}")
241241

242-
if (NOT TARGET FortranFloat128Math)
243-
# If FortranFloat128Math is not defined, then we are not building
244-
# standalone FortranFloat128Math library. Instead, include
242+
if (NOT TARGET flang_rt.quadmath)
243+
# If flang_rt.quadmath is not defined, then we are not building
244+
# standalone flang_rt.quadmath library. Instead, include
245245
# the relevant sources into flang_rt itself.
246246
# The information is provided via FortranFloat128MathILib
247247
# interface library.
@@ -270,35 +270,38 @@ if (NOT TARGET FortranFloat128Math)
270270
endif()
271271

272272
if (NOT DEFINED MSVC)
273-
add_flang_library(flang_rt
273+
add_flang_library(flang_rt.runtime
274274
${sources}
275275

276276
INSTALL_WITH_TOOLCHAIN
277277
)
278278
else()
279-
add_flang_library(flang_rt
279+
add_flang_library(flang_rt.runtime
280280
${sources}
281281
)
282282
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
283-
add_flang_library(flang_rt.static ${sources}
283+
add_flang_library(flang_rt.runtime.static ${sources}
284284
INSTALL_WITH_TOOLCHAIN)
285-
set_target_properties(flang_rt.static PROPERTIES FOLDER "Flang/Runtime Libraries")
285+
set_target_properties(flang_rt.runtime.static PROPERTIES FOLDER "Flang/Runtime Libraries")
286286
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)
287-
add_flang_library(flang_rt.dynamic ${sources}
287+
add_flang_library(flang_rt.runtime.dynamic ${sources}
288288
INSTALL_WITH_TOOLCHAIN)
289-
set_target_properties(flang_rt.dynamic PROPERTIES FOLDER "Flang/Runtime Libraries")
289+
set_target_properties(flang_rt.runtime.dynamic PROPERTIES FOLDER "Flang/Runtime Libraries")
290290
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDebug)
291-
add_flang_library(flang_rt.static_dbg ${sources}
291+
add_flang_library(flang_rt.runtime.static_dbg ${sources}
292292
INSTALL_WITH_TOOLCHAIN)
293-
set_target_properties(flang_rt.static_dbg PROPERTIES FOLDER "Flang/Runtime Libraries")
293+
set_target_properties(flang_rt.runtime.static_dbg PROPERTIES FOLDER "Flang/Runtime Libraries")
294294
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDebugDLL)
295-
add_flang_library(flang_rt.dynamic_dbg ${sources}
295+
add_flang_library(flang_rt.runtime.dynamic_dbg ${sources}
296296
INSTALL_WITH_TOOLCHAIN)
297-
set_target_properties(flang_rt.dynamic_dbg PROPERTIES FOLDER "Flang/Runtime Libraries")
298-
add_dependencies(flang_rt flang_rt.static flang_rt.dynamic
299-
flang_rt.static_dbg flang_rt.dynamic_dbg)
297+
set_target_properties(flang_rt.runtime.dynamic_dbg PROPERTIES FOLDER "Flang/Runtime Libraries")
298+
add_dependencies(flang_rt.runtime
299+
flang_rt.runtime.static
300+
flang_rt.runtime.dynamic
301+
flang_rt.runtime.static_dbg
302+
flang_rt.runtime.dynamic_dbg)
300303
endif()
301-
set_target_properties(flang_rt PROPERTIES FOLDER "Flang/Runtime Libraries")
304+
set_target_properties(flang_rt.runtime PROPERTIES FOLDER "Flang/Runtime Libraries")
302305

303306
# If flang_rt is part of a Flang build (and not a separate build) then
304307
# add dependency to make sure that Fortran runtime library is being built after
@@ -308,7 +311,7 @@ set_target_properties(flang_rt PROPERTIES FOLDER "Flang/Runtime Libraries")
308311
# TODO: This is a workaround and should be updated when runtime build procedure
309312
# is changed to a regular runtime build. See discussion in PR #95388.
310313
if (TARGET flang AND TARGET module_files)
311-
add_dependencies(flang_rt flang module_files)
314+
add_dependencies(flang_rt.runtime flang module_files)
312315
endif()
313316

314317
if (FLANG_CUF_RUNTIME)
@@ -317,6 +320,12 @@ endif()
317320

318321
# Compatibility targets.
319322
add_custom_target(flang-rt)
320-
add_dependencies(flang-rt flang_rt)
323+
add_dependencies(flang-rt flang_rt.runtime)
324+
if (TARGET flang_rt.quadmath)
325+
add_dependencies(flang-rt flang_rt.quadmath)
326+
endif ()
327+
if (TARGET flang_rt.cuda_${CUDAToolkit_VERSION_MAJOR})
328+
add_dependencies(flang-rt flang_rt.cuda_${CUDAToolkit_VERSION_MAJOR})
329+
endif ()
321330
add_custom_target(FortranRuntime)
322-
add_dependencies(FortranRuntime flang_rt)
331+
add_dependencies(FortranRuntime flang_rt.runtime)

flang/runtime/CUDA/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
include_directories(${CUDAToolkit_INCLUDE_DIRS})
1010

11-
# libCufRuntime depends on a certain version of CUDA. To be able to have
11+
# libflang_rt.cuda depends on a certain version of CUDA. To be able to have
1212
# multiple build of this library with different CUDA version, the version is
1313
# added to the library name.
14-
set(CUFRT_LIBNAME CufRuntime_cuda_${CUDAToolkit_VERSION_MAJOR})
14+
set(CUFRT_LIBNAME flang_rt.cuda_${CUDAToolkit_VERSION_MAJOR})
1515

1616
add_flang_library(${CUFRT_LIBNAME}
1717
allocator.cpp
@@ -33,6 +33,6 @@ endif()
3333

3434
target_link_libraries(${CUFRT_LIBNAME}
3535
PRIVATE
36-
flang_rt
36+
flang_rt.runtime
3737
${CUDA_RT_TARGET}
3838
)

flang/runtime/Float128Math/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# It is distributed as a static library only.
1313
# Fortran programs/libraries that end up linking any of the provided
1414
# will have a dependency on the third-party library that is being
15-
# used for building this FortranFloat128Math library.
15+
# used for building this flang_rt.quadmath library.
1616

1717
include(CheckLibraryExists)
1818

@@ -93,20 +93,20 @@ if (FLANG_RUNTIME_F128_MATH_LIB)
9393
)
9494
endif()
9595

96-
add_flang_library(FortranFloat128Math STATIC INSTALL_WITH_TOOLCHAIN
96+
add_flang_library(flang_rt.quadmath STATIC INSTALL_WITH_TOOLCHAIN
9797
${sources})
9898

9999
if (DEFINED MSVC)
100100
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
101-
add_flang_library(FortranFloat128Math.static STATIC INSTALL_WITH_TOOLCHAIN
101+
add_flang_library(flang_rt.quadmath.static STATIC INSTALL_WITH_TOOLCHAIN
102102
${sources}
103103
)
104104
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDebug)
105-
add_flang_library(FortranFloat128Math.static_dbg STATIC INSTALL_WITH_TOOLCHAIN
105+
add_flang_library(flang_rt.quadmath.static_dbg STATIC INSTALL_WITH_TOOLCHAIN
106106
${sources}
107107
)
108-
add_dependencies(FortranFloat128Math FortranFloat128Math.static
109-
FortranFloat128Math.static_dbg
108+
add_dependencies(flang_rt.quadmath flang_rt.quadmath.static
109+
flang_rt.quadmath.static_dbg
110110
)
111111
endif()
112112
elseif (HAVE_LDBL_MANT_DIG_113)
@@ -118,7 +118,7 @@ elseif (HAVE_LDBL_MANT_DIG_113)
118118
)
119119
target_sources(FortranFloat128MathILib INTERFACE ${sources})
120120
else()
121-
message(FATAL_ERROR "flang_rt cannot build without libm")
121+
message(FATAL_ERROR "flang_rt.quadmath cannot build without libm")
122122
endif()
123123
else()
124124
# We can use '__float128' version from libc, if it has them.

flang/runtime/tools.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ inline RT_API_ATTRS RESULT ApplyFloatingPointKind(
348348
if constexpr (HasCppTypeFor<TypeCategory::Real, 16>) {
349349
// If FUNC implemenation relies on FP math functions,
350350
// then we should not be here. The compiler should have
351-
// generated a call to an entry in FortranFloat128Math
351+
// generated a call to an entry in flang_rt.quadmath
352352
// library.
353353
if constexpr (!NEEDSMATH) {
354354
return FUNC<16>{}(std::forward<A>(x)...);

flang/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ set(FLANG_TEST_DEPENDS
7575
)
7676

7777
if (FLANG_INCLUDE_RUNTIME)
78-
list(APPEND FLANG_TEST_DEPENDS flang_rt)
78+
list(APPEND FLANG_TEST_DEPENDS flang_rt.runtime)
7979
endif ()
8080

8181
if (LLVM_ENABLE_PLUGINS AND NOT WIN32)

flang/test/Driver/gcc-toolchain-install-dir.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!! Test that --gcc-toolchain and --gcc-install-dir options are working as expected.
2-
!! It does not test cross-compiling (--sysroot), so crtbegin.o, libgcc/compiler-rt, libc, libflang_rt, etc. are not supposed to be affected.
2+
!! It does not test cross-compiling (--sysroot), so crtbegin.o, libgcc/compiler-rt, libc, libflang_rt.runtime, etc. are not supposed to be affected.
33
!! PREFIX is captured twice because the driver escapes backslashes (occuring in Windows paths) in the -### output, but not on the "Selected GCC installation:" line.
44

55
! RUN: %flang 2>&1 -### -v -o %t %s -no-integrated-as -fuse-ld=ld --target=i386-unknown-linux-gnu --gcc-install-dir=%S/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0 | FileCheck %s --check-prefix=CHECK-I386

flang/test/Driver/linker-flags.f90

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,30 @@
2929
! executable and may find the GNU linker from MinGW or Cygwin.
3030
! UNIX-LABEL: "{{.*}}ld{{(\.exe)?}}"
3131
! UNIX-SAME: "[[object_file]]"
32-
! UNIX-F128NONE-NOT: FortranFloat128Math
33-
! SOLARIS-F128NONE-NOT: FortranFloat128Math
34-
! UNIX-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed"
35-
! SOLARIS-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "-z" "ignore" "-lquadmath" "-z" "record"
36-
! UNIX-SAME: "-lflang_rt" "-lm"
32+
! UNIX-F128NONE-NOT: libflang_rt.quadmath
33+
! SOLARIS-F128NONE-NOT: libflang_rt.quadmath
34+
! UNIX-F128LIBQUADMATH-SAME: "-lflang_rt.quadmath" "--as-needed" "-lquadmath" "--no-as-needed"
35+
! SOLARIS-F128LIBQUADMATH-SAME: "-lflang_rt.quadmath" "-z" "ignore" "-lquadmath" "-z" "record"
36+
! UNIX-SAME: "-lflang_rt.runtime" "-lm"
3737
! COMPILER-RT: "{{.*}}{{\\|/}}libclang_rt.builtins.a"
3838

3939
! DARWIN-LABEL: "{{.*}}ld{{(\.exe)?}}"
4040
! DARWIN-SAME: "[[object_file]]"
41-
! DARWIN-F128NONE-NOT: FortranFloat128Math
42-
! DARWIN-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed"
43-
! DARWIN-SAME: -lflang_rt
41+
! DARWIN-F128NONE-NOT: libflang_rt.quadmath
42+
! DARWIN-F128LIBQUADMATH-SAME: "-lflang_rt.quadmath" "--as-needed" "-lquadmath" "--no-as-needed"
43+
! DARWIN-SAME: -lflang_rt.runtime
4444

4545
! HAIKU-LABEL: "{{.*}}ld{{(\.exe)?}}"
4646
! HAIKU-SAME: "[[object_file]]"
47-
! HAIKU-F128NONE-NOT: FortranFloat128Math
48-
! HAIKU-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed"
49-
! HAIKU-SAME: "-lflang_rt"
47+
! HAIKU-F128NONE-NOT: libflang_rt.quadmath
48+
! HAIKU-F128LIBQUADMATH-SAME: "-lflang_rt.quadmath" "--as-needed" "-lquadmath" "--no-as-needed"
49+
! HAIKU-SAME: "-lflang_rt.runtime"
5050

5151
! MINGW-LABEL: "{{.*}}ld{{(\.exe)?}}"
5252
! MINGW-SAME: "[[object_file]]"
53-
! MINGW-F128NONE-NOT: FortranFloat128Math
54-
! MINGW-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed"
55-
! MINGW-SAME: -lflang_rt
53+
! MINGW-F128NONE-NOT: libflang_rt.quadmath
54+
! MINGW-F128LIBQUADMATH-SAME: "-lflang_rt.quadmath" "--as-needed" "-lquadmath" "--no-as-needed"
55+
! MINGW-SAME: -lflang_rt.runtime
5656

5757
! NOTE: This also matches lld-link (when CLANG_DEFAULT_LINKER=lld) and
5858
! any .exe suffix that is added when resolving to the full path of

0 commit comments

Comments
 (0)