Skip to content

Commit b60680b

Browse files
jeffbolznvmglambda
authored andcommitted
build: apply MSVC /bigobj option to c/cpp files only (ggml-org#11423)
1 parent 58830fd commit b60680b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ endif()
5050
if (MSVC)
5151
add_compile_options("$<$<COMPILE_LANGUAGE:C>:/utf-8>")
5252
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/utf-8>")
53-
add_compile_options(/bigobj)
53+
add_compile_options("$<$<COMPILE_LANGUAGE:C>:/bigobj>")
54+
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>")
5455
endif()
5556

5657
#

0 commit comments

Comments
 (0)