mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-11 09:53:12 +00:00
fix(ci): Windows SIGILL in CI (#1339)
This commit is contained in:
parent
db8f866db4
commit
f791a960f2
@ -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
|
||||
|
||||
@ -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`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user