Sublime Text and Github's grammar parsers are different. It works fine in ST, but it breaks github's.
when defined(gcc) and defined(windows):
when defined(x86):
{.link: "icons/koch.res".}
else:
{.link: "icons/koch_icon.o".}
when defined(amd64) and defined(windows) and defined(vcc):
{.link: "icons/koch-amd64-windows-vcc.res".}
when defined(i386) and defined(windows) and defined(vcc):
{.link: "icons/koch-i386-windows-vcc.res".}
import std/[os, strutils, parseopt, osproc]
Using std/os instead of os to fail early if config isn't set up properly.
If this fails with: Error: cannot open file: std/os, see
when defined(amd64) and defined(windows) and defined(vcc): {.link: "icons/koch-amd64-windows-vcc.res".} when defined(i386) and defined(windows) and defined(vcc): {.link: "icons/koch-i386-windows-vcc.res".}
import std/[os, strutils, parseopt, osproc]
Using
std/os
instead ofos
to fail early if config isn't set up properly.If this fails with:
Error: cannot open file: std/os
, seehttps://github.com/nim-lang/Nim/pull/14291 for explanation + how to fix.
when defined(nimPreviewSlimSystem): import std/[assertions, syncio]