Skip to content

Commit 18288ad

Browse files
committed
finally found the right zig compiler flags for amd64 with no avx instructions
1 parent 58d76c4 commit 18288ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- arch: amd64
2929
target: x86_64-linux-musl
3030
nimcpu: ""
31-
march: "-march=x86-64 -mno-avx -mno-avx2"
31+
march: "-march=x86_64 -mno-avx -mno-avx2"
3232
- arch: arm64
3333
target: aarch64-linux-musl
3434
nimcpu: "--cpu:arm64"

null.o

888 Bytes
Binary file not shown.

yabb.nimble

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.4.12"
3+
version = "0.4.13"
44
author = "Aryan Ameri"
55
description = "Yet Another BTRFS Backup"
66
license = "MPL 2.0"
@@ -107,7 +107,7 @@ const ltoFlags = "--passC:-flto=thin --passL:-flto=thin"
107107
task releaseAmd64, "Build static binary for x86_64 Linux":
108108
exec "nim c " & releaseFlags & " " & zigccFlags & " " &
109109
"--passC:'-target x86_64-linux-musl' " & "--passL:'-target x86_64-linux-musl' " &
110-
"--passC:-march=x86-64 --passC:-mno-avx --passC:-mno-avx2 " & ltoFlags &
110+
"--passC:-march=x86_64 --passC:-mno-avx --passC:-mno-avx2 " & ltoFlags &
111111
" -o:bin/yabb-linux-amd64 src/yabb.nim"
112112
exec "llvm-strip -s bin/yabb-linux-amd64"
113113
echo "Built: bin/yabb-linux-amd64"

0 commit comments

Comments
 (0)