fix(ci): Windows SIGILL in CI (#1339)

This commit is contained in:
Eric 2025-11-03 22:45:02 +11:00 committed by GitHub
parent db8f866db4
commit f791a960f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -61,11 +61,12 @@ elif defined(macosx) and defined(arm64):
switch("passC", "-mcpu=apple-a14")
# TODO: newer Clang >=15.0 can: https://github.com/llvm/llvm-project/commit/fcca10c69aaab539962d10fcc59a5f074b73b0de
else:
switch("passC", "-march=native")
if defined(windows):
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782
# ("-fno-asynchronous-unwind-tables" breaks Nim's exception raising, sometimes)
switch("passC", "-mno-avx512vl")
switch("passC", "-march=x86-64")
else: switch("passC", "-march=native")
--tlsEmulation:
off

View File

@ -2,14 +2,13 @@ import std/macros
import std/os
import std/strutils
macro importTests*(dir: static string, excludes: static string = ""): untyped =
macro importTests*(dir: static string): untyped =
## imports all files in the specified directory whose filename
## starts with "test" and ends in ".nim"
let imports = newStmtList()
let excludeList = excludes.split(",")
for file in walkDirRec(dir):
let (_, name, ext) = splitFile(file)
if name.startsWith("test") and ext == ".nim" and not (name in excludeList):
if name.startsWith("test") and ext == ".nim":
imports.add(
quote do:
import `file`