diff options
author | Max Krasnyansky <max.krasnyansky@gmail.com> | 2024-05-15 19:47:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 12:47:36 +1000 |
commit | 13ad16af1231ab2d245d35df3295bcfa23de1305 (patch) | |
tree | 4534efed6a5c015c8b06565530bbfadef51a1304 /cmake/arm64-windows-msvc.cmake | |
parent | 8f7080bf48828b538bc9387c3d150bbd4fb4cf2d (diff) |
Add support for properly optimized Windows ARM64 builds with LLVM and MSVC (#7191)
* logging: add proper checks for clang to avoid errors and warnings with VA_ARGS
* build: add CMake Presets and toolchian files for Windows ARM64
* matmul-int8: enable matmul-int8 with MSVC and fix Clang warnings
* ci: add support for optimized Windows ARM64 builds with MSVC and LLVM
* matmul-int8: fixed typos in q8_0_q8_0 matmuls
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
* matmul-int8: remove unnecessary casts in q8_0_q8_0
---------
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'cmake/arm64-windows-msvc.cmake')
-rw-r--r-- | cmake/arm64-windows-msvc.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/arm64-windows-msvc.cmake b/cmake/arm64-windows-msvc.cmake new file mode 100644 index 00000000..c7763142 --- /dev/null +++ b/cmake/arm64-windows-msvc.cmake @@ -0,0 +1,6 @@ +set( CMAKE_SYSTEM_NAME Windows ) +set( CMAKE_SYSTEM_PROCESSOR arm64 ) + +set( target arm64-pc-windows-msvc ) +set( CMAKE_C_COMPILER_TARGET ${target} ) +set( CMAKE_CXX_COMPILER_TARGET ${target} ) |