@@ -106,24 +106,24 @@ set(LIBC_TARGET_ARCHITECTURE ${compiler_arch})
106106set (LIBC_TARGET_OS ${compiler_sys} )
107107set (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." )
115115endif ()
116116
117117set (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 } )
120120elseif (LIBC_TARGET_TRIPLE)
121121 set (explicit_target_triple ${LIBC_TARGET_TRIPLE} )
122122endif ()
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.
129129if (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.
204204if (explicit_target_triple AND
0 commit comments