Skip to content

Commit 1927663

Browse files
AntoinePrvclaude
andcommitted
Fix sanity check shell: use cmd to avoid MSYS path mangling
Git Bash on Windows converts /nologo and /EHsc to filesystem paths (C:/Program Files/Git/nologo etc.). Switch the sanity check step to cmd shell so MSVC flags are passed verbatim. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 029eb91 commit 1927663

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/windows.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,18 @@ jobs:
2020
- name: Checkout xsimd
2121
uses: actions/checkout@v6
2222
- name: Sanity check NEON intrinsics
23+
shell: cmd
2324
run: |
24-
cat > sanity_neon.cpp << 'EOF'
25-
#include <arm_neon.h>
26-
int main() {
27-
uint8x16_t a = vdupq_n_u8(1);
28-
uint8x16_t b = vdupq_n_u8(2);
29-
uint8x16_t c = vaddq_u8(a, b);
30-
(void)c;
31-
return 0;
32-
}
33-
EOF
25+
echo #include ^<arm_neon.h^> > sanity_neon.cpp
26+
echo int main() { >> sanity_neon.cpp
27+
echo uint8x16_t a = vdupq_n_u8(1); >> sanity_neon.cpp
28+
echo uint8x16_t b = vdupq_n_u8(2); >> sanity_neon.cpp
29+
echo uint8x16_t c = vaddq_u8(a, b); >> sanity_neon.cpp
30+
echo (void)c; >> sanity_neon.cpp
31+
echo return 0; >> sanity_neon.cpp
32+
echo } >> sanity_neon.cpp
3433
cl /nologo /EHsc sanity_neon.cpp /Fe:sanity_neon.exe
35-
./sanity_neon.exe
34+
sanity_neon.exe
3635
- name: Setup
3736
run: cmake -B _build -DBUILD_TESTS=ON -DDOWNLOAD_DOCTEST=ON -DBUILD_BENCHMARK=ON -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release -G Ninja
3837
- name: Build

0 commit comments

Comments
 (0)