diff options
author | Araq <rumpf_a@web.de> | 2018-12-17 23:03:54 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-12-17 23:03:54 +0100 |
commit | 09b9a544187f9ab72da675fc80a5c815c0a6535c (patch) | |
tree | 846fe342cd00fc3d7c7262f29c360ea318c7176e | |
parent | 86c3ac6a611d7e4eaa9eb017036e8ef3b20b0cd9 (diff) | |
download | Nim-09b9a544187f9ab72da675fc80a5c815c0a6535c.tar.gz |
make tests green with a global config.nims file
-rw-r--r-- | compiler/commands.nim | 6 | ||||
-rw-r--r-- | lib/system/ansi_c.nim | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index b090a09a5..5893791cc 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -590,10 +590,12 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; processOnOffSwitchG(conf, {optGenIndex}, arg, pass, info) of "import": expectArg(conf, switch, arg, pass, info) - if pass in {passCmd2, passPP}: conf.implicitImports.add arg + if pass in {passCmd2, passPP}: + conf.implicitImports.add findModule(conf, arg, toFullPath(conf, info)).string of "include": expectArg(conf, switch, arg, pass, info) - if pass in {passCmd2, passPP}: conf.implicitIncludes.add arg + if pass in {passCmd2, passPP}: + conf.implicitIncludes.add findModule(conf, arg, toFullPath(conf, info)).string of "listcmd": expectNoArg(conf, switch, arg, pass, info) incl(conf.globalOptions, optListCmd) diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index 38910dbd6..af34060d8 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -51,7 +51,7 @@ when defined(windows): elif defined(macosx) or defined(linux) or defined(freebsd) or defined(openbsd) or defined(netbsd) or defined(solaris) or defined(dragonfly) or defined(nintendoswitch) or defined(genode) or - defined(aix): + defined(aix) or hostOS == "standalone": const SIGABRT = cint(6) SIGFPE = cint(8) |