all repos — hastyscribe @ 2d49ae5b51c02ebdfdf6dc6f4631dd89fcb723c1

A professional markdown compiler.

Fixed static linking on linux.
h3rald h3rald@h3rald.com
Sat, 08 Jul 2017 20:33:39 +0000
commit

2d49ae5b51c02ebdfdf6dc6f4631dd89fcb723c1

parent

96f555e406559710dcfc11183f24507a4f74a1b1

2 files changed, 14 insertions(+), 15 deletions(-)

jump to
M markdown.nimmarkdown.nim

@@ -1,3 +1,17 @@

+when defined(discount): + {.link: "packages/discount/libmarkdown.a".} +else: + when defined(macosx): + {.link: "vendor/libmarkdown_macosx_x64.a".} + when defined(windows): + {.link: "vendor/libmarkdown_windows_x64.a".} + when defined(linux): + when defined(arm): + {.passL: "vendor/libmarkdown_linux_arm.a".} + when defined(i386): + {.passL: "vendor/libmarkdown_linux_x86.a".} + when defined(amd64): + {.passL: "vendor/libmarkdown_linux_x64.a".} const MKDIO_D* = true type

@@ -184,18 +198,3 @@ result = cstringArrayToSeq(res)[0]

else: result = "" mkd_cleanup(mmiot) - -when defined(discount): - {.link: "packages/discount/libmarkdown.a".} -else: - when defined(macosx): - {.link: "vendor/libmarkdown_macosx_x64.a".} - when defined(windows): - {.link: "vendor/libmarkdown_windows_x64.a".} - when defined(linux): - when defined(arm): - {.link: "vendor/libmarkdown_linux_arm.a".} - when defined(i386): - {.link: "vendor/libmarkdown_linux_x86.a".} - when defined(amd64): - {.link: "vendor/libmarkdown_linux_x64.a".}