Skip to content

Commit

Permalink
Disable FP registers for soft float
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed May 15, 2024
1 parent 81bb168 commit 1423fcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
- { target: aarch64-linux-musl, os: ubuntu-latest, strip: "llvm-strip", upx: "upx --lzma",
cmake: "-DUSE_SYSTEM_PCAP=OFF" }
- { target: arm-linux-musleabi, os: ubuntu-latest, strip: "llvm-strip", upx: "upx --lzma",
cmake: "-DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION='-mcpu=cortex_a7;-msoft-float'", name: "(cortex_a7)" }
cmake: "-DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION='-mcpu=cortex_a7'", name: "(cortex_a7)" }
- { target: arm-linux-musleabi, os: ubuntu-latest, strip: "llvm-strip", upx: "upx --lzma",
cmake: "-DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION='-mcpu=cortex_a7' -DZIG_EXTRA_ARGS='-Xclang -target-feature -Xclang -fpregs'", name: "(cortex_a7_soft_float)" }
- { target: arm-linux-musleabi, os: ubuntu-latest, strip: "llvm-strip", upx: "upx --lzma",
cmake: "-DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION='-mcpu=arm1176jzf_s'", name: "(pi_zero_w)" }
- { target: mipsel-linux-musl, os: ubuntu-latest, strip: "llvm-strip", upx: "upx --lzma",
Expand Down
2 changes: 1 addition & 1 deletion cmake/zig-tools/zig-cc.sh.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
@ZIG@ cc "$@"
@ZIG@ cc @ZIG_EXTRA_ARGS@ "$@"
2 changes: 1 addition & 1 deletion cmake/zig-tools/zig-cpp.sh.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
@ZIG@ c++ "$@"
@ZIG@ c++ @ZIG_EXTRA_ARGS@ "$@"

0 comments on commit 1423fcb

Please sign in to comment.