Skip to content

Commit e24ee59

Browse files
committed
Fix build on raspberry pi
1 parent 65164ac commit e24ee59

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ if(TARGET_OS STREQUAL "windows")
6161
add_compile_definitions(${target} PRIVATE _UNICODE) # C-runtime
6262
endif()
6363

64+
# We assume that char is signed in various places in the code. In particular,
65+
# the Str.StrToInts test will fail when char is not signed and names containing
66+
# special characters will be displayed incorrectly on servers.
67+
add_compiler_flag_if_supported(OUR_FLAGS -fsigned-char)
68+
6469
set(LINK_FLAGS_PLATFORM "")
6570

6671
# use the mock collision from the test code

0 commit comments

Comments
 (0)