all repos — min @ ea3610c1ab01e4bf724af1f9f64f80438e008902

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
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
# 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("define", "ssl")
switch("opt", "size")
switch("threads", "on")


when defined(windows): 
  switch("passL","-static")
  # TODO",  change once issue nim#15220 is resolved
  switch("define", "noOpenSSLHacks")
  switch("dynlibOverride", "ssl-")
  switch("dynlibOverride", "crypto-")
  switch("passL","-Lvendor/openssl/windows")
  switch("passL","-lssl")
  switch("passL","-lcrypto")
  switch("passL","-lws2_32")
  switch("define", "sslVersion:(")
else:
  switch("dynlibOverride", "ssl")
  switch("dynlibOverride", "crypto")
  if defined(linux):
    switch("passL","-static")
    switch("passL","-Lvendor/openssl/linux")
    switch("passL","-lssl")
    switch("passL","-lcrypto")
  elif defined(macosx):
    switch("passL","-Bstatic")
    switch("passL","-Lvendor/openssl/macosx")
    switch("passL","-lssl")
    switch("passL","-lcrypto")
    switch("passL","-Bdynamic")