Skip to content

Commit

Permalink
Drop riscv32 and change abi of riscv64 for Limine compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed May 30, 2023
1 parent 23239a6 commit 8398d42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
libgcc:
strategy:
matrix:
target_arch: [i386, i686, x86_64, arm, aarch64, riscv32, riscv64]
target_arch: [i386, i686, x86_64, arm, aarch64, riscv64]

name: Build and upload libgcc for ${{matrix.target_arch}}
runs-on: ubuntu-latest
Expand All @@ -33,7 +33,12 @@ jobs:
esac
- name: Build the toolchain
run: CFLAGS_FOR_TARGET="-O2 -pipe -fPIC -Wa,--noexecstack" TARGET="$(cat target-triplet)" GCCVERSION="$(cat gcc-version)" BINUTILSVERSION="$(cat binutils-version)" ./make_toolchain.sh
run: |
CFLAGS_FOR_TARGET=""; \
if [ "${{matrix.target_arch}}" = "riscv64" ]; then \
CFLAGS_FOR_TARGET="-march=rv64imac_zicsr_zifencei -mabi=lp64"; \
fi; \
CFLAGS_FOR_TARGET="-O2 -pipe -fPIC -Wa,--noexecstack $CFLAGS_FOR_TARGET" TARGET="$(cat target-triplet)" GCCVERSION="$(cat gcc-version)" BINUTILSVERSION="$(cat binutils-version)" ./make_toolchain.sh
- name: Copy libgcc.a
run: cp toolchain/lib/gcc/$(cat target-triplet)/$(cat gcc-version)/libgcc.a ./libgcc-${{matrix.target_arch}}.a
Expand Down
Binary file removed libgcc-riscv32.a
Binary file not shown.

0 comments on commit 8398d42

Please sign in to comment.