Skip to content

Commit

Permalink
Update cdefault.yml (#1648)
Browse files Browse the repository at this point in the history
remove semihosting for CLANG and IAR as well.

@JonatanAntoni could you please validate that this works correctly for
CLANG and IAR.
  • Loading branch information
jkrech authored and JonatanAntoni committed Jul 17, 2024
1 parent 494426b commit 0d2b3d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/projmgr/templates/cdefault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ default:
- -std=gnu11
Link:
- --specs=nano.specs
- --specs=nosys.specs
- -Wl,-Map=$elf()$.map
- -Wl,--gc-sections
- -Wl,--no-warn-rwx-segments
- -Wl,--no-warn-rwx-segments # suppress incorrect linker warning

- for-compiler: CLANG
C-CPP:
Expand All @@ -40,14 +41,12 @@ default:
C:
- -std=gnu11
Link:
- -lcrt0-semihost
- -lsemihost
- -lcrt0
- -Wl,-Map=$elf()$.map
- -Wl,--gc-sections

- for-compiler: IAR
C-CPP:
- --dlib_config DLib_Config_Full.h
Link:
- --semihosting
- --map=$elf()$.map

0 comments on commit 0d2b3d0

Please sign in to comment.