Skip to content

Commit 01f6a2a

Browse files
committed
build: correct the variable name for cross-compiling
A typo snuck into the cross-compiling path and due to the machine that it was tested on hvaing `/bin/llvm-tblgen`, the build succeeded. Correct the typo to ensure that we use the correct tblgen.
1 parent c49fca5 commit 01f6a2a

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)