Skip to content

Commit f19c2d2

Browse files
authored
Merge pull request #23388 from compnerd/i-am-the-real-tblgen
build: correct the variable name for cross-compiling
2 parents 7ff9419 + 01f6a2a commit f19c2d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ macro(swift_common_standalone_build_config_llvm product)
6363
endif()
6464

6565
if(CMAKE_CROSSCOMPILING)
66-
set(LLVM_NATIVE_BUILD "${LLVM_BINARY_DIR}/NATIVE")
67-
if(NOT EXISTS "${LLVM_NATIVE_BUILD}")
66+
set(LLVM_NATIVE_BUILD_DIR "${LLVM_BINARY_DIR}/NATIVE")
67+
if(NOT EXISTS "${LLVM_NATIVE_BUILD_DIR}")
6868
message(FATAL_ERROR
6969
"Attempting to cross-compile swift standalone but no native LLVM build
7070
found. Please cross-compile LLVM as well.")

0 commit comments

Comments
 (0)