X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/76ec29f832083ef95c56afbd1e11fc29856a0770..cf1d9f104696ecb95c62c136aa47f90fb28c6762:/tools/cmake/Flags.cmake diff --git a/tools/cmake/Flags.cmake b/tools/cmake/Flags.cmake index de55de01d4..6fdaa31346 100644 --- a/tools/cmake/Flags.cmake +++ b/tools/cmake/Flags.cmake @@ -84,6 +84,12 @@ if(enable_compile_optimizations) else() set(optCFLAGS "-O0 ") endif() + +#ARM platforms have signed char by default, switch to unsigned for consistancy +if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") + set(optCFLAGS "${optCFLAGS} -fsigned-char") +endif() + if(enable_compile_optimizations AND CMAKE_COMPILER_IS_GNUCC AND (NOT enable_model-checking)) # This is redundant (already in -03):