File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ jobs:
127127 config :
128128 - name : " Aarch64 actuated testing"
129129 flb_option : " -DFLB_WITHOUT_flb-it-network=1 -DFLB_WITHOUT_flb-it-fstore=1"
130- omit_option : " -DFLB_WITHOUT_flb-it-utils=1 -DFLB_WITHOUT_flb-it-pack=1 "
130+ omit_option : " "
131131 global_option : " -DFLB_BACKTRACE=Off -DFLB_SHARED_LIB=Off -DFLB_DEBUG=On -DFLB_ALL=On -DFLB_EXAMPLES=Off"
132132 unit_test_option : " -DFLB_TESTS_INTERNAL=On"
133133 compiler : gcc
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ endif()
3030if (CMAKE_SYSTEM_NAME MATCHES "Linux" )
3131 set (FLB_SYSTEM_LINUX On )
3232 add_definitions (-DFLB_SYSTEM_LINUX)
33+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm64|aarch64)" )
34+ set (FLB_LINUX_ON_AARCH64 On )
35+ add_definitions (-DFLB_LINUX_ON_AARCH64)
36+ endif ()
3337endif ()
3438
3539# Update CFLAGS
@@ -317,6 +321,12 @@ if (FLB_SYSTEM_LINUX)
317321 include (cmake/s390x.cmake)
318322endif ()
319323
324+ # Enable signed char support on Linux AARCH64 if specified
325+ if (FLB_LINUX_ON_AARCH64)
326+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsigned-char" )
327+ message (STATUS "Enabling signed char" )
328+ endif ()
329+
320330# Extract Git commit information for debug output.
321331# Note that this is only set when cmake is run, the intent here is to use in CI for verification of releases so is acceptable.
322332# For a better solution see https://jonathanhamberg.com/post/cmake-embedding-git-hash/ but this is simple and easy.
You can’t perform that action at this time.
0 commit comments