Skip to content

Commit c5cd8aa

Browse files
committed
Replace instances of LLVM_RUNTIMES_TARGET with LLVM_RUNTIME_TARGETS
1 parent d433134 commit c5cd8aa

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

.github/workflows/libc-fullbuild-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
-DCMAKE_C_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
9898
-DCMAKE_CXX_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
9999
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.build-install-dir }} \
100-
-DLLVM_RUNTIMES_TARGET=${{ matrix.target }} \
100+
-DLLVM_RUNTIME_TARGETS=${{ matrix.target }} \
101101
-DLLVM_ENABLE_RUNTIMES="$RUNTIMES" \
102102
-DLLVM_LIBC_FULL_BUILD=ON \
103103
-G Ninja \

flang-rt/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ endif()
223223

224224
# The GPU targets require a few mandatory arguments to make the standard CMake
225225
# check flags happy.
226-
if ("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn")
226+
if ("${LLVM_RUNTIME_TARGETS}" MATCHES "^amdgcn")
227227
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nogpulib")
228-
elseif ("${LLVM_RUNTIMES_TARGET}" MATCHES "^nvptx")
228+
elseif ("${LLVM_RUNTIME_TARGETS}" MATCHES "^nvptx")
229229
set(CMAKE_REQUIRED_FLAGS
230230
"${CMAKE_REQUIRED_FLAGS} -flto -c -Wno-unused-command-line-argument")
231231
endif()

flang-rt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ will test whether the Fortran compiler can compile and link programs which will
113113
obviously fail without a runtime library available yet.
114114

115115
Building Flang-RT for cross-compilation triple, the target triple can
116-
be selected using `LLVM_DEFAULT_TARGET_TRIPLE` AND `LLVM_RUNTIMES_TARGET`.
116+
be selected using `LLVM_DEFAULT_TARGET_TRIPLE` AND `LLVM_RUNTIME_TARGETS`.
117117
Of course, Flang-RT can be built multiple times with different build
118118
configurations, but have to be located manually when using with the Flang
119119
driver using the `-L` option.

flang-rt/cmake/modules/AddFlangRT.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ function (add_flangrt_library name)
234234
endif ()
235235

236236
# Add target specific options if necessary.
237-
if ("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn")
237+
if ("${LLVM_RUNTIME_TARGETS}" MATCHES "^amdgcn")
238238
target_compile_options(${tgtname} PRIVATE
239239
$<$<COMPILE_LANGUAGE:CXX>:-nogpulib -flto -fvisibility=hidden>
240240
)
241-
elseif ("${LLVM_RUNTIMES_TARGET}" MATCHES "^nvptx")
241+
elseif ("${LLVM_RUNTIME_TARGETS}" MATCHES "^nvptx")
242242
target_compile_options(${tgtname} PRIVATE
243243
$<$<COMPILE_LANGUAGE:CXX>:-nogpulib -flto -fvisibility=hidden -Wno-unknown-cuda-version --cuda-feature=+ptx63>
244244
)

flang-rt/lib/runtime/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ else ()
175175
set(f128_sources "")
176176
endif ()
177177

178-
if ("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn|^nvptx")
178+
if ("${LLVM_RUNTIME_TARGETS}" MATCHES "^amdgcn|^nvptx")
179179
set(sources ${gpu_sources})
180180
else ()
181181
set(sources ${supported_sources} ${host_sources} ${f128_sources})

libc/cmake/modules/LLVMLibCArchitectures.cmake

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,24 +106,24 @@ set(LIBC_TARGET_ARCHITECTURE ${compiler_arch})
106106
set(LIBC_TARGET_OS ${compiler_sys})
107107
set(LIBC_CROSSBUILD FALSE)
108108

109-
# One should not set LLVM_RUNTIMES_TARGET and LIBC_TARGET_TRIPLE
110-
if(LLVM_RUNTIMES_TARGET AND LIBC_TARGET_TRIPLE)
109+
# One should not set LLVM_RUNTIME_TARGETS and LIBC_TARGET_TRIPLE
110+
if(LLVM_RUNTIME_TARGETS AND LIBC_TARGET_TRIPLE)
111111
message(FATAL_ERROR
112-
"libc build: Specify only LLVM_RUNTIMES_TARGET if you are doing a "
112+
"libc build: Specify only LLVM_RUNTIME_TARGETS if you are doing a "
113113
"runtimes/bootstrap build. If you are doing a standalone build, "
114114
"specify only LIBC_TARGET_TRIPLE.")
115115
endif()
116116

117117
set(explicit_target_triple)
118-
if(LLVM_RUNTIMES_TARGET)
119-
set(explicit_target_triple ${LLVM_RUNTIMES_TARGET})
118+
if(LLVM_RUNTIME_TARGETS)
119+
set(explicit_target_triple ${LLVM_RUNTIME_TARGETS})
120120
elseif(LIBC_TARGET_TRIPLE)
121121
set(explicit_target_triple ${LIBC_TARGET_TRIPLE})
122122
endif()
123123

124124
# The libc's target architecture and OS are set to match the compiler's default
125125
# target triple above. However, one can explicitly set LIBC_TARGET_TRIPLE or
126-
# LLVM_RUNTIMES_TARGET (for runtimes/bootstrap build). If one of them is set,
126+
# LLVM_RUNTIME_TARGETS (for runtimes/bootstrap build). If one of them is set,
127127
# then we will use that target triple to deduce libc's target OS and
128128
# architecture.
129129
if(explicit_target_triple)
@@ -198,7 +198,7 @@ endif()
198198

199199

200200
# If the compiler target triple is not the same as the triple specified by
201-
# LIBC_TARGET_TRIPLE or LLVM_RUNTIMES_TARGET, we will add a --target option
201+
# LIBC_TARGET_TRIPLE or LLVM_RUNTIME_TARGETS, we will add a --target option
202202
# if the compiler is clang. If the compiler is GCC we just error out as there
203203
# is no equivalent of an option like --target.
204204
if(explicit_target_triple AND

libc/docs/gpu/building.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ targeting a GPU architecture.
105105
-DCMAKE_C_COMPILER=$TARGET_C_COMPILER \
106106
-DCMAKE_CXX_COMPILER=$TARGET_CXX_COMPILER \
107107
-DLLVM_LIBC_FULL_BUILD=ON \
108-
-DLLVM_RUNTIMES_TARGET=$TARGET_TRIPLE \
108+
-DLLVM_RUNTIME_TARGETS=$TARGET_TRIPLE \
109109
-DCMAKE_BUILD_TYPE=Release
110110
$> ninja install
111111

llvm/runtimes/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ function(runtime_register_target name)
409409
-DCMAKE_Fortran_COMPILER_WORKS=ON
410410
-DCMAKE_ASM_COMPILER_WORKS=ON
411411
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
412-
-DLLVM_RUNTIMES_TARGET=${name}
412+
-DLLVM_RUNTIME_TARGETS=${name}
413413
${COMMON_CMAKE_ARGS}
414414
${${name}_extra_args}
415415
EXTRA_TARGETS ${${name}_extra_targets}

runtimes/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ endif()
165165
set(LLVM_COMPILER_CHECKED ON)
166166

167167
# This can be used to detect whether we're targeting a GPU architecture.
168-
if("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn" OR
169-
"${LLVM_RUNTIMES_TARGET}" MATCHES "^nvptx64")
168+
if("${LLVM_RUNTIME_TARGETS}" MATCHES "^amdgcn" OR
169+
"${LLVM_RUNTIME_TARGETS}" MATCHES "^nvptx64")
170170
set(LLVM_RUNTIMES_GPU_BUILD ON)
171171
endif()
172172

@@ -336,10 +336,10 @@ if(SUB_COMPONENTS)
336336
endif()
337337
endforeach()
338338

339-
if(LLVM_RUNTIMES_TARGET)
339+
if(LLVM_RUNTIME_TARGETS)
340340
configure_file(
341341
${CMAKE_CURRENT_SOURCE_DIR}/Components.cmake.in
342-
${CMAKE_CURRENT_BINARY_DIR}/runtimes/${LLVM_RUNTIMES_TARGET}/Components.cmake)
342+
${CMAKE_CURRENT_BINARY_DIR}/runtimes/${LLVM_RUNTIME_TARGETS}/Components.cmake)
343343
else()
344344
configure_file(
345345
${CMAKE_CURRENT_SOURCE_DIR}/Components.cmake.in

0 commit comments

Comments
 (0)