diff --git a/config.nims b/config.nims index 05a31fff..8700f60e 100644 --- a/config.nims +++ b/config.nims @@ -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 diff --git a/tests/imports.nim b/tests/imports.nim index 6cbc52e5..fbe642fc 100644 --- a/tests/imports.nim +++ b/tests/imports.nim @@ -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`