Skip to content

Commit a511345

Browse files
test: force source-charset to utf-8 in MSVC
prevents `tests\test-grammar-integration.cpp(483,13): error C2001: newline in constant` in non-UTF8 Windows shell
1 parent dbd5f2f commit a511345

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
if(WIN32)
2+
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")
3+
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/source-charset:utf-8>")
4+
endif()
5+
16
function(llama_test target)
27
include(CMakeParseArguments)
38
set(options)

0 commit comments

Comments
 (0)