Skip to content

Commit e0cbe88

Browse files
Copy libc and libm from newlib
1 parent bb265d4 commit e0cbe88

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build_clangrt_builtins.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,29 @@ jobs:
1414
matrix:
1515
target:
1616
- core: cortex-m3
17+
newlib_arch_path: /usr/lib/arm-none-eabi/newlib/thumb/v7-m/nofp
1718
se: st33
1819
- core: cortex-m35p+nodsp
20+
newlib_arch_path: /usr/lib/arm-none-eabi/newlib/thumb/v8-m.main+fp/softfp
1921
se: st33k1
2022

2123
steps:
2224
- uses: actions/checkout@v4
2325
with:
2426
# TODO: remove this next line before merging!
25-
ref: feat/apa/clangrt
27+
ref: feat/iar/clangrt_22_from_apa
2628
sparse-checkout: |
2729
tools/build_clangrt_builtins.sh
2830
sparse-checkout-cone-mode: false
2931

30-
- run: ./tools/build_clangrt_builtins.sh -t ${{ matrix.target.core }} -o artifact/arch/${{ matrix.target.se }}/lib
32+
- name: Comiple and copy Clang compiler-rt runtime library
33+
run: |
34+
./tools/build_clangrt_builtins.sh -t ${{ matrix.target.core }} -o artifact/arch/${{ matrix.target.se }}/lib
35+
36+
- name: Copy libc and libm from newlib
37+
run: |
38+
cp ${{ matrix.target.newlib_arch_path }}/libm.a artifact/arch/${{ matrix.target.se }}/lib
39+
cp ${{ matrix.target.newlib_arch_path }}/libc.a artifact/arch/${{ matrix.target.se }}/lib
3140
3241
- uses: actions/upload-artifact@v4
3342
with:

0 commit comments

Comments
 (0)