Skip to content

Commit

Permalink
Disable MSVC warnings (#1680)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz authored Dec 10, 2024
1 parent 9df8fed commit 0070e36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mlx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ target_sources(
${CMAKE_CURRENT_SOURCE_DIR}/linalg.cpp
${CMAKE_CURRENT_SOURCE_DIR}/backend/metal/metal.h)

if(MSVC)
# Disable some MSVC warnings to speed up compilation.
target_compile_options(mlx PUBLIC /wd4068 /wd4244 /wd4267 /wd4804)
endif()

if(MLX_BUILD_CPU)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backend/common)
else()
Expand Down

0 comments on commit 0070e36

Please sign in to comment.