Skip to content

Commit

Permalink
change comile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
HonestDeng committed Sep 22, 2023
1 parent 20e8ddd commit 06a0dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolchains/aarch64-linux-gnu-c.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_C_FLAGS "-march=armv8-a")
set(CMAKE_CXX_FLAGS "-march=armv8-a")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-builtin -fno-stack-protector -nostdinc++ -lc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nodefaultlibs -fno-builtin -fno-stack-protector -nostdinc++ -mno-outline-atomics -lc")

# cache flags
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags")
Expand Down

0 comments on commit 06a0dba

Please sign in to comment.