Skip to content

Commit af310c9

Browse files
committed
Address coderabbit comments
1 parent f6df622 commit af310c9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

cmake/Toolchains/llvm-clang-15-toolchain.cmake

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# @param {string} VAR_NAME Variable name to set.
55
# @param {string} BINARY_PATH Path to the cmake toolchain binary.
6-
function(set_toolchian_binary_var VAR_NAME BINARY_PATH)
6+
function(set_toolchain_binary_var VAR_NAME BINARY_PATH)
77
if(NOT EXISTS "${BINARY_PATH}")
88
message(FATAL_ERROR "Required cmake toolchain binary not found: ${BINARY_PATH}")
99
endif()
@@ -22,12 +22,12 @@ execute_process(
2222
if(NOT 0 EQUAL BREW_RESULT)
2323
message(
2424
FATAL_ERROR
25-
"Failed to locate LLVM v15 using Homebrew. Please ensure llvm@15 is installed: 'brew \
26-
install llvm@15'"
25+
"Failed to locate LLVM v15 using Homebrew. Please ensure llvm@15 is installed: 'brew"
26+
" install llvm@15'"
2727
)
2828
endif()
2929

30-
set_toolchian_binary_var(CMAKE_C_COMPILER "${LLVM_TOOLCHAIN_PREFIX}/bin/clang")
31-
set_toolchian_binary_var(CMAKE_CXX_COMPILER "${LLVM_TOOLCHAIN_PREFIX}/bin/clang++")
32-
set_toolchian_binary_var(CMAKE_AR "${LLVM_TOOLCHAIN_PREFIX}/bin/llvm-ar")
33-
set_toolchian_binary_var(CMAKE_RANLIB "${LLVM_TOOLCHAIN_PREFIX}/bin/llvm-ranlib")
30+
set_toolchain_binary_var(CMAKE_C_COMPILER "${LLVM_TOOLCHAIN_PREFIX}/bin/clang")
31+
set_toolchain_binary_var(CMAKE_CXX_COMPILER "${LLVM_TOOLCHAIN_PREFIX}/bin/clang++")
32+
set_toolchain_binary_var(CMAKE_AR "${LLVM_TOOLCHAIN_PREFIX}/bin/llvm-ar")
33+
set_toolchain_binary_var(CMAKE_RANLIB "${LLVM_TOOLCHAIN_PREFIX}/bin/llvm-ranlib")

cmake/Toolchains/utils.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function(setup_toolchains)
1414
if("${MACOS_VERSION}" VERSION_LESS "15")
1515
set(CMAKE_TOOLCHAIN_FILE
1616
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/Toolchains/llvm-clang-15-toolchain.cmake"
17-
CACHE STRING
17+
CACHE FILEPATH
1818
"Toolchain file"
1919
)
2020
endif()
@@ -42,8 +42,8 @@ function(validate_compiler_versions)
4242
if("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "${CXX_COMPILER_MIN_VERSION}")
4343
message(
4444
FATAL_ERROR
45-
"${CMAKE_CXX_COMPILER_ID} version ${CMAKE_CXX_COMPILER_VERSION} is too low. Must be at \
46-
least ${CXX_COMPILER_MIN_VERSION}."
45+
"${CMAKE_CXX_COMPILER_ID} version ${CMAKE_CXX_COMPILER_VERSION} is too low. Must be at"
46+
" least ${CXX_COMPILER_MIN_VERSION}."
4747
)
4848
endif()
4949
endfunction()

0 commit comments

Comments
 (0)