Skip to content

Commit fa71485

Browse files
committed
fix: Windows build
1 parent 5337ede commit fa71485

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llama/toolchains/llvm.win32.host-x64.target-x64.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ set(arch_c_flags "-march=native")
1818

1919
set(CMAKE_C_FLAGS_INIT "${arch_c_flags}")
2020
set(CMAKE_CXX_FLAGS_INIT "${arch_c_flags}")
21+
22+
# Set the CUDA flags to use the same compiler as the C compiler
23+
get_filename_component(C_COMPILER_DIR "${CMAKE_C_COMPILER}" DIRECTORY)
24+
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --compiler-bindir=${C_COMPILER_DIR}")

0 commit comments

Comments
 (0)