all repos — min @ ede33919d72b8e5153a268bcbc064829bf8612d4

A small but practical concatenative programming language.

min.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
 29
 30
 31
# https", //blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/

# https", //gist.github.com/Drakulix/9881160
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")

# http", //crossgcc.rts-software.org/doku.php?id=compiling_for_linux
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")

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

when not defined(nossl):
  switch("define", "ssl")

when defined(ssl) and not defined(mini):
  switch("threads", "on")
  when defined(windows): 
    # TODO",  change once issue nim#15220 is resolved
    switch("define", "noOpenSSLHacks")
    switch("define", "sslVersion:(")
    switch("dynlibOverride", "ssl-")
    switch("dynlibOverride", "crypto-")
  else:
    switch("dynlibOverride", "ssl")
    switch("dynlibOverride", "crypto")