Skip to content

Commit

Permalink
Workflow LTO support
Browse files Browse the repository at this point in the history
  • Loading branch information
Akashem06 committed Nov 3, 2024
1 parent b8cf0cd commit 9daab68
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ jobs:
- name: Build stm32f10x
id: build-stm32
run: |
# The workflow will build without link-time-optimization
export CCFLAGS="${CCFLAGS} -fno-lto"
export LINKFLAGS="${LINKFLAGS} -fno-lto"
sudo apt-get install -y gcc-arm-none-eabi gcc-arm-none-eabi-plugin binutils-arm-none-eabi
# Use GCC-specific archiver and tools that support LTO
export AR=arm-none-eabi-gcc-ar
export RANLIB=arm-none-eabi-gcc-ranlib
export NM=arm-none-eabi-gcc-nm
scons --platform=arm --define="${DEFINES}"

- name: Build and test
Expand Down

0 comments on commit 9daab68

Please sign in to comment.