Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions tests/imports.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Loading