all repos — hastysite @ 7ef715fdec8b1cd50d0cf14e1e24721cae8711ce

A high-performance static site generator.

hastysite.nims

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
# https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/

switch("amd64.windows.gcc.path", "/usr/local/bin")
switch("amd64.windows.gcc.exe", "x86_64-w64-mingw32-gcc")
switch("amd64.windows.gcc.linkerexe", "x86_64-w64-mingw32-gcc")

switch("amd64.linux.gcc.path", "/usr/local/bin")
switch("amd64.linux.gcc.exe", "x86_64-linux-musl-gcc")
switch("amd64.linux.gcc.linkerexe", "x86_64-linux-musl-gcc")

switch("opt", "size")
switch("mm", "refc")
switch("threadAnalysis", "off")

when not defined(dev):
  switch("define", "release")

if findExe("musl-gcc") != "":
  switch("gcc.exe", "musl-gcc")
  switch("gcc.linkerexe", "musl-gcc")

when defined(windows):
  switch("dynlibOverride", "pcre64")
when defined(freebsd):
  switch("dynlibOverride", "pcre2")
else:
  switch("dynlibOverride", "pcre")