Merge pull request #8176 from furo321/arm-signed-char

Add `-fsigned-char` by default for ARM systems
This commit is contained in:
Dennis Felsing 2024-04-03 05:17:49 +00:00 committed by GitHub
commit 19c48e32ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -291,6 +291,12 @@ if(NOT MSVC AND NOT HAIKU)
add_cxx_compiler_flag_if_supported(OUR_FLAGS -ffloat-store)
endif()
# This is needed to get the server to correctly display special characters
# on ARM systems.
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "aarch64")
add_cxx_compiler_flag_if_supported(OUR_FLAGS -fsigned-char)
endif()
# Don't insert timestamps into PEs to keep the build reproducible.
if(TARGET_OS STREQUAL "windows")
add_cxx_compiler_flag_if_supported(OUR_FLAGS_LINK -Wl,--no-insert-timestamp)