Skip to content

Commit 69a63aa

Browse files
committed
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/meinersbur/flang_runtime_move-files
2 parents bbd298e + 516c6df commit 69a63aa

File tree

26 files changed

+73
-61
lines changed

26 files changed

+73
-61
lines changed

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ void tools::addOpenMPHostOffloadingArgs(const Compilation &C,
13171317
/// Add Fortran runtime libs
13181318
void tools::addFortranRuntimeLibs(const ToolChain &TC, const ArgList &Args,
13191319
llvm::opt::ArgStringList &CmdArgs) {
1320-
// Link FortranRuntime
1320+
// Link flang_rt
13211321
// These are handled earlier on Windows by telling the frontend driver to
13221322
// add the correct libraries to link against as dependents in the object
13231323
// file.
@@ -1333,7 +1333,7 @@ void tools::addFortranRuntimeLibs(const ToolChain &TC, const ArgList &Args,
13331333
if (AsNeeded)
13341334
addAsNeededOption(TC, Args, CmdArgs, /*as_needed=*/false);
13351335
}
1336-
CmdArgs.push_back("-lFortranRuntime");
1336+
CmdArgs.push_back("-lflang_rt");
13371337
addArchSpecificRPath(TC, Args, CmdArgs);
13381338
}
13391339

clang/lib/Driver/ToolChains/Flang.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,26 +356,26 @@ static void processVSRuntimeLibrary(const ToolChain &TC, const ArgList &Args,
356356
case options::OPT__SLASH_MT:
357357
CmdArgs.push_back("-D_MT");
358358
CmdArgs.push_back("--dependent-lib=libcmt");
359-
CmdArgs.push_back("--dependent-lib=FortranRuntime.static.lib");
359+
CmdArgs.push_back("--dependent-lib=flang_rt.static.lib");
360360
break;
361361
case options::OPT__SLASH_MTd:
362362
CmdArgs.push_back("-D_MT");
363363
CmdArgs.push_back("-D_DEBUG");
364364
CmdArgs.push_back("--dependent-lib=libcmtd");
365-
CmdArgs.push_back("--dependent-lib=FortranRuntime.static_dbg.lib");
365+
CmdArgs.push_back("--dependent-lib=flang_rt.static_dbg.lib");
366366
break;
367367
case options::OPT__SLASH_MD:
368368
CmdArgs.push_back("-D_MT");
369369
CmdArgs.push_back("-D_DLL");
370370
CmdArgs.push_back("--dependent-lib=msvcrt");
371-
CmdArgs.push_back("--dependent-lib=FortranRuntime.dynamic.lib");
371+
CmdArgs.push_back("--dependent-lib=flang_rt.dynamic.lib");
372372
break;
373373
case options::OPT__SLASH_MDd:
374374
CmdArgs.push_back("-D_MT");
375375
CmdArgs.push_back("-D_DEBUG");
376376
CmdArgs.push_back("-D_DLL");
377377
CmdArgs.push_back("--dependent-lib=msvcrtd");
378-
CmdArgs.push_back("--dependent-lib=FortranRuntime.dynamic_dbg.lib");
378+
CmdArgs.push_back("--dependent-lib=flang_rt.dynamic_dbg.lib");
379379
break;
380380
}
381381
}

flang-rt/lib/flang_rt/time-intrinsic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ template <typename Unused = void> double GetCpuTime(fallback_implementation) {
6262

6363
#if defined __MINGW32__
6464
// clock_gettime is implemented in the pthread library for MinGW.
65-
// Using it here would mean that all programs that link libFortranRuntime are
65+
// Using it here would mean that all programs that link libflang_rt are
6666
// required to also link to pthread. Instead, don't use the function.
6767
#undef CLOCKID_CPU_TIME
6868
#undef CLOCKID_ELAPSED_TIME

flang-rt/test/Runtime/no-cpp-dep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This test makes sure that flang's runtime does not depend on the C++ runtime
3-
library. It tries to link this simple file against libFortranRuntime.a with
3+
library. It tries to link this simple file against libflang_rt.a with
44
a C compiler.
55
66
REQUIRES: c-compiler

flang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ set(FLANG_DEFAULT_LINKER "" CACHE STRING
286286
"Default linker to use (linker name or absolute path, empty for platform default)")
287287

288288
set(FLANG_DEFAULT_RTLIB "" CACHE STRING
289-
"Default Fortran runtime library to use (\"libFortranRuntime\"), leave empty for platform default.")
289+
"Default Fortran runtime library to use (\"libflang_rt\"), leave empty for platform default.")
290290

291291
if (NOT(FLANG_DEFAULT_RTLIB STREQUAL ""))
292292
message(WARNING "Resetting Flang's default runtime library to use platform default.")

flang/docs/FlangDriver.md

Lines changed: 4 additions & 4 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 [...] "-lFortranRuntime" [...]
178+
"/usr/bin/ld" [...] example.o [...] "-lflang_rt" [...]
179179
```
180180

181181
The automatically added libraries are:
182182

183-
* `FortranRuntime`: Provides most of the Flang runtime library.
183+
* `flang_rt`: 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.
188-
In this case, one has to explicitly provide the Fortran runtime libraries
189-
`FortranRuntime`. An alternative is to use Flang to link.
188+
In this case, one has to explicitly provide the Fortran runtime library
189+
`flang_rt`. 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ cmake \
216216
-DCMAKE_CUDA_COMPILER=clang \
217217
-DCMAKE_CUDA_HOST_COMPILER=clang++ \
218218
../runtime/
219-
make -j FortranRuntime
219+
make -j flang-rt
220220
```
221221

222222
Note that the used version of `clang` must [support](https://releases.llvm.org/16.0.0/tools/clang/docs/ReleaseNotes.html#cuda-support)
@@ -239,7 +239,7 @@ cmake \
239239
-DCMAKE_CUDA_HOST_COMPILER=clang++ \
240240
../runtime/
241241

242-
make -j FortranRuntime
242+
make -j flang-rt
243243
```
244244

245245
Note that `nvcc` might limit support to certain
@@ -294,7 +294,7 @@ cmake \
294294
-DFLANG_OMP_DEVICE_ARCHITECTURES="all" \
295295
../runtime/
296296

297-
make -j FortranRuntime
297+
make -j flang-rt
298298
```
299299

300300
The result of the build is a "device-only" library, i.e. the host

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 `FortranRuntime` 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` 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/ReleaseNotes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ page](https://llvm.org/releases/).
3636

3737
## Build System Changes
3838

39+
* FortranRuntime has been renamed to `flang_rt`.
40+
3941
## New Issues Found
4042

4143

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-
FortranRuntime
8+
flang_rt
99
)

flang/lib/Optimizer/Builder/IntrinsicCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ prettyPrintIntrinsicName(fir::FirOpBuilder &builder, mlir::Location loc,
778778
// Generate a call to the Fortran runtime library providing
779779
// support for 128-bit float math.
780780
// On 'HAS_LDBL128' targets the implementation
781-
// is provided by FortranRuntime, otherwise, it is done via
781+
// is provided by flang_rt, otherwise, it is done via
782782
// FortranFloat128Math library. In the latter case the compiler
783783
// has to be built with FLANG_RUNTIME_F128_MATH_LIB to guarantee
784784
// proper linking actions in the driver.

flang/runtime/CMakeLists.txt

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,13 @@ set(supported_files
261261
)
262262

263263
runtime_source_files(supported_files)
264-
enable_cuda_compilation(FortranRuntime "${supported_files}")
264+
enable_cuda_compilation(flang_rt "${supported_files}")
265265
enable_omp_offload_compilation("${supported_files}")
266266

267267
if (NOT TARGET FortranFloat128Math)
268268
# If FortranFloat128Math is not defined, then we are not building
269269
# standalone FortranFloat128Math library. Instead, include
270-
# the relevant sources into FortranRuntime itself.
270+
# the relevant sources into flang_rt itself.
271271
# The information is provided via FortranFloat128MathILib
272272
# interface library.
273273
get_target_property(f128_sources
@@ -298,47 +298,53 @@ runtime_source_files(sources)
298298

299299

300300
if (NOT DEFINED MSVC)
301-
add_flang_library(FortranRuntime
301+
add_flang_library(flang_rt
302302
${sources}
303303

304304
INSTALL_WITH_TOOLCHAIN
305305
)
306306
else()
307-
add_flang_library(FortranRuntime
307+
add_flang_library(flang_rt
308308
${sources}
309309
)
310310
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
311-
add_flang_library(FortranRuntime.static ${sources}
311+
add_flang_library(flang_rt.static ${sources}
312312
INSTALL_WITH_TOOLCHAIN)
313-
set_target_properties(FortranRuntime.static PROPERTIES FOLDER "Flang/Runtime Libraries")
313+
set_target_properties(flang_rt.static PROPERTIES FOLDER "Flang/Runtime Libraries")
314314
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)
315-
add_flang_library(FortranRuntime.dynamic ${sources}
315+
add_flang_library(flang_rt.dynamic ${sources}
316316
INSTALL_WITH_TOOLCHAIN)
317-
set_target_properties(FortranRuntime.dynamic PROPERTIES FOLDER "Flang/Runtime Libraries")
317+
set_target_properties(flang_rt.dynamic PROPERTIES FOLDER "Flang/Runtime Libraries")
318318
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDebug)
319-
add_flang_library(FortranRuntime.static_dbg ${sources}
319+
add_flang_library(flang_rt.static_dbg ${sources}
320320
INSTALL_WITH_TOOLCHAIN)
321-
set_target_properties(FortranRuntime.static_dbg PROPERTIES FOLDER "Flang/Runtime Libraries")
321+
set_target_properties(flang_rt.static_dbg PROPERTIES FOLDER "Flang/Runtime Libraries")
322322
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDebugDLL)
323-
add_flang_library(FortranRuntime.dynamic_dbg ${sources}
323+
add_flang_library(flang_rt.dynamic_dbg ${sources}
324324
INSTALL_WITH_TOOLCHAIN)
325-
set_target_properties(FortranRuntime.dynamic_dbg PROPERTIES FOLDER "Flang/Runtime Libraries")
326-
add_dependencies(FortranRuntime FortranRuntime.static FortranRuntime.dynamic
327-
FortranRuntime.static_dbg FortranRuntime.dynamic_dbg)
325+
set_target_properties(flang_rt.dynamic_dbg PROPERTIES FOLDER "Flang/Runtime Libraries")
326+
add_dependencies(flang_rt flang_rt.static flang_rt.dynamic
327+
flang_rt.static_dbg flang_rt.dynamic_dbg)
328328
endif()
329-
set_target_properties(FortranRuntime PROPERTIES FOLDER "Flang/Runtime Libraries")
329+
set_target_properties(flang_rt PROPERTIES FOLDER "Flang/Runtime Libraries")
330330

331-
# If FortranRuntime is part of a Flang build (and not a separate build) then
331+
# If flang_rt is part of a Flang build (and not a separate build) then
332332
# add dependency to make sure that Fortran runtime library is being built after
333333
# we have the Flang compiler available. This also includes the MODULE files
334334
# that compile when the 'flang' target is built.
335335
#
336336
# TODO: This is a workaround and should be updated when runtime build procedure
337337
# is changed to a regular runtime build. See discussion in PR #95388.
338338
if (TARGET flang AND TARGET module_files)
339-
add_dependencies(FortranRuntime flang module_files)
339+
add_dependencies(flang_rt flang module_files)
340340
endif()
341341

342342
if (FLANG_CUF_RUNTIME)
343343
add_subdirectory(CUDA)
344344
endif()
345+
346+
# Compatibility targets.
347+
add_custom_target(flang-rt)
348+
add_dependencies(flang-rt flang_rt)
349+
add_custom_target(FortranRuntime)
350+
add_dependencies(FortranRuntime flang_rt)

flang/runtime/CUDA/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ endif()
3636

3737
target_link_libraries(${CUFRT_LIBNAME}
3838
PRIVATE
39-
FortranRuntime
39+
flang_rt
4040
${CUDA_RT_TARGET}
4141
)

flang/runtime/Float128Math/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ elseif (HAVE_LDBL_MANT_DIG_113)
118118
)
119119
target_sources(FortranFloat128MathILib INTERFACE ${sources})
120120
else()
121-
message(FATAL_ERROR "FortranRuntime cannot build without libm")
121+
message(FATAL_ERROR "flang_rt cannot build without libm")
122122
endif()
123123
else()
124124
# We can use '__float128' version from libc, if it has them.

flang/test/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ set(FLANG_TEST_DEPENDS
7171
llvm-objdump
7272
llvm-readobj
7373
split-file
74-
FortranRuntime
74+
flang_rt
7575
FortranDecimal
7676
)
7777
if (LLVM_ENABLE_PLUGINS AND NOT WIN32)
@@ -120,3 +120,7 @@ if (DEFINED FLANG_TEST_TARGET_TRIPLE)
120120
"to use FLANG_TEST_TARGET_TRIPLE.")
121121
endif()
122122
endif()
123+
124+
# Compatibility targets.
125+
add_custom_target(check-flang-rt)
126+
add_dependencies(check-flang-rt check-flang)

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, libFortranRuntime, etc. are not supposed to be affected.
2+
!! It does not test cross-compiling (--sysroot), so crtbegin.o, libgcc/compiler-rt, libc, libflang_rt, 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@
3333
! SOLARIS-F128NONE-NOT: FortranFloat128Math
3434
! UNIX-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed"
3535
! SOLARIS-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "-z" "ignore" "-lquadmath" "-z" "record"
36-
! UNIX-SAME: "-lFortranRuntime" "-lm"
36+
! UNIX-SAME: "-lflang_rt" "-lm"
3737
! COMPILER-RT: "{{.*}}{{\\|/}}libclang_rt.builtins.a"
3838

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

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

5151
! MINGW-LABEL: "{{.*}}ld{{(\.exe)?}}"
5252
! MINGW-SAME: "[[object_file]]"
5353
! MINGW-F128NONE-NOT: FortranFloat128Math
5454
! MINGW-F128LIBQUADMATH-SAME: "-lFortranFloat128Math" "--as-needed" "-lquadmath" "--no-as-needed"
55-
! MINGW-SAME: -lFortranRuntime
55+
! MINGW-SAME: -lflang_rt
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

flang/test/Driver/msvc-dependent-lib-flags.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77
! MSVC-SAME: --dependent-lib=clang_rt.builtins.lib
88
! MSVC-SAME: -D_MT
99
! MSVC-SAME: --dependent-lib=libcmt
10-
! MSVC-SAME: --dependent-lib=FortranRuntime.static.lib
10+
! MSVC-SAME: --dependent-lib=flang_rt.static.lib
1111

1212
! MSVC-DEBUG: -fc1
1313
! MSVC-DEBUG-SAME: --dependent-lib=clang_rt.builtins.lib
1414
! MSVC-DEBUG-SAME: -D_MT
1515
! MSVC-DEBUG-SAME: -D_DEBUG
1616
! MSVC-DEBUG-SAME: --dependent-lib=libcmtd
17-
! MSVC-DEBUG-SAME: --dependent-lib=FortranRuntime.static_dbg.lib
17+
! MSVC-DEBUG-SAME: --dependent-lib=flang_rt.static_dbg.lib
1818

1919
! MSVC-DLL: -fc1
2020
! MSVC-DLL-SAME: --dependent-lib=clang_rt.builtins.lib
2121
! MSVC-DLL-SAME: -D_MT
2222
! MSVC-DLL-SAME: -D_DLL
2323
! MSVC-DLL-SAME: --dependent-lib=msvcrt
24-
! MSVC-DLL-SAME: --dependent-lib=FortranRuntime.dynamic.lib
24+
! MSVC-DLL-SAME: --dependent-lib=flang_rt.dynamic.lib
2525

2626
! MSVC-DLL-DEBUG: -fc1
2727
! MSVC-DLL-DEBUG-SAME: --dependent-lib=clang_rt.builtins.lib
2828
! MSVC-DLL-DEBUG-SAME: -D_MT
2929
! MSVC-DLL-DEBUG-SAME: -D_DEBUG
3030
! MSVC-DLL-DEBUG-SAME: -D_DLL
3131
! MSVC-DLL-DEBUG-SAME: --dependent-lib=msvcrtd
32-
! MSVC-DLL-DEBUG-SAME: --dependent-lib=FortranRuntime.dynamic_dbg.lib
32+
! MSVC-DLL-DEBUG-SAME: --dependent-lib=flang_rt.dynamic_dbg.lib

flang/test/Driver/nostdlib.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
! in certain cases. But it is not clear that it is worth checking for each
2525
! platform individually.
2626

27-
! CHECK-NOT: "-lFortranRuntime"
27+
! CHECK-NOT: "-lflang_rt"
2828
! CHECK-NOT: "-lgcc"

flang/test/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
# the C++ runtime libraries. For this we need a C compiler. If for some reason
168168
# we don't have one, we can just disable the test.
169169
if config.cc:
170-
libruntime = os.path.join(config.flang_lib_dir, "libFortranRuntime.a")
170+
libruntime = os.path.join(config.flang_lib_dir, "libflang_rt.a")
171171
include = os.path.join(config.flang_src_dir, "include")
172172

173173
if (

flang/tools/f18/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set(LLVM_LINK_COMPONENTS
55
)
66

77
# Define the list of Fortran module files that need to be compiled
8-
# to produce an object file for inclusion into the FortranRuntime
8+
# to produce an object file for inclusion into the flang_rt
99
# library.
1010
set(MODULES_WITH_IMPLEMENTATION
1111
"iso_fortran_env_impl"
@@ -101,7 +101,7 @@ if (NOT CMAKE_CROSSCOMPILING)
101101
endif()
102102

103103
# Some modules have an implementation part that needs to be added to the
104-
# FortranRuntime library.
104+
# flang_rt library.
105105
set(compile_with "-fsyntax-only")
106106
set(object_output "")
107107
set(include_in_link FALSE)
@@ -123,14 +123,14 @@ if (NOT CMAKE_CROSSCOMPILING)
123123
install(FILES ${base}.mod DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flang")
124124

125125
# If a module has been compiled into an object file, add the file to
126-
# the link line for the FortranRuntime library.
126+
# the link line for the flang_rt library.
127127
if(include_in_link)
128128
list(APPEND module_objects ${object_output})
129129
endif()
130130
endforeach()
131131

132132
# Set a CACHE variable that is visible to the CMakeLists.txt in runtime/, so that
133-
# the compiled Fortran modules can be added to the link line of the FortranRuntime
133+
# the compiled Fortran modules can be added to the link line of the flang_rt
134134
# library.
135135
set(FORTRAN_MODULE_OBJECTS ${module_objects} CACHE INTERNAL "" FORCE)
136136

0 commit comments

Comments
 (0)