Skip to content

Commit

Permalink
build: remove build optimization flags from cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreCostaaa committed Feb 24, 2025
1 parent 9ac3452 commit da81ee2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions usr/aarch64_toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ set(CMAKE_C_COMPILER "aarch64-none-linux-gnu-gcc")
set(CMAKE_C_LINK_EXECUTABLE "aarch64-none-linux-gnu-ld <OBJECTS> -o <TARGET> <LINK_LIBRARIES> <LINK_FLAGS> <LINK_LIBRARIES>")
set(CMAKE_ASM_COMPILER "aarch64-none-linux-gnu-gcc")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O0 -std=c99 -D_GNU_SOURCE -nostdlib -pipe \
-D__ARM64__ -g -ffreestanding -fno-common")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=c99 -D_GNU_SOURCE -nostdlib -D__ARM64__ -ffreestanding -fno-common")

set(CMAKE_ASM_FLAGS_DEBUG "-D__ASSEMBLY__")

Expand Down
3 changes: 1 addition & 2 deletions usr/arm_toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ set(CMAKE_C_COMPILER "arm-none-eabi-gcc")
set(CMAKE_C_LINK_EXECUTABLE "arm-none-eabi-ld <OBJECTS> -o <TARGET> <LINK_LIBRARIES> <LINK_FLAGS> <LINK_LIBRARIES>")
set(CMAKE_ASM_COMPILER "arm-none-eabi-gcc")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O0 -std=c99 -D_GNU_SOURCE -nostdlib \
-pipe -Wall -D__ARM__ -marm -mno-thumb-interwork -g -ffreestanding -fno-common")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=c99 -D_GNU_SOURCE -nostdlib -D__ARM__ -marm -mno-thumb-interwork -ffreestanding -fno-common")

set(CMAKE_ASM_FLAGS_DEBUG "-D__ARM__ -D__ASSEMBLY__")

Expand Down

0 comments on commit da81ee2

Please sign in to comment.