Skip to content

Commit 1737632

Browse files
committed
Fix windows; fix '-mcpu' arg
1 parent f785425 commit 1737632

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/zig.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ jobs:
1111
zig:
1212
if: github.repository_owner == 'aws'
1313
runs-on: ${{ matrix.config.host }}
14-
env:
15-
CFLAGS: "-fno-sanitize=all"
16-
CXXFLAGS: "-fno-sanitize=all"
1714
strategy:
1815
fail-fast: false
1916
matrix:
@@ -48,10 +45,12 @@ jobs:
4845
if: matrix.os.name != 'windows-latest'
4946
shell: bash
5047
run: |
48+
echo "CFLAGS=${CFLAGS} -fno-sanitize=all"
49+
echo "CXXFLAGS=${CXXFLAGS} -fno-sanitize=all"
5150
echo "ZIGCC=${PWD}/util/zig-cc" >> $GITHUB_ENV
5251
echo "ZIGCXX=${PWD}/util/zig-c++" >> $GITHUB_ENV
5352
- name: Locate zig on Windows
54-
if: matrix.os.name == 'windows-latest'
53+
if: matrix.config.host == 'windows-latest'
5554
shell: bash
5655
run: |
5756
ZIGCC="python3 $(cygpath -m $(which zigcc))"

util/zig-c++

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ filter_problematic_flags() {
1616
case "$arg" in
1717
-march=armv8.4-a+sha3)
1818
# Replace the specific problematic flag with a compatible one
19-
args+=("-mcpu=generic" "-mattr=+v8.4a,+sha3")
19+
args+=("-mcpu=generic+v8.4a+sha3")
2020
;;
2121
*)
2222
# Keep all other arguments including mcpu, mtune, and other march flags

util/zig-cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ filter_problematic_flags() {
1616
case "$arg" in
1717
-march=armv8.4-a+sha3)
1818
# Replace the specific problematic flag with a compatible one
19-
args+=("-mcpu=generic" "-mattr=+v8.4a,+sha3")
19+
args+=("-mcpu=generic+v8.4a+sha3")
2020
;;
2121
*)
2222
# Keep all other arguments

0 commit comments

Comments
 (0)