Updated cross-compilers.
h3rald h3rald@h3rald.com
Sun, 23 Jun 2019 20:22:30 +0200
2 files changed,
8 insertions(+),
31 deletions(-)
M
nimhttpd.nimble
→
nimhttpd.nimble
@@ -23,12 +23,10 @@ installExt = @["nim"]
# Dependencies -requires "nim >= 0.19.0" +requires "nim >= 0.20.0" const compile = "nim c -d:release" -const linux_x86 = "--cpu:i386 --os:linux -o:nimhttpd" const linux_x64 = "--cpu:amd64 --os:linux -o:nimhttpd" -const linux_arm = "--cpu:arm --os:linux -o:nimhttpd" const windows_x64 = "--cpu:amd64 --os:windows -o:nimhttpd.exe" const macosx_x64 = "-o:nimhttpd" const program = "nimhttpd"@@ -44,15 +42,9 @@
task windows_x64_build, "Build NimHTTPd for Windows (x64)": shell compile, windows_x64, program_file -task linux_x86_build, "Build NimHTTPd for Linux (x86)": - shell compile, linux_x86, program_file - task linux_x64_build, "Build NimHTTPd for Linux (x64)": shell compile, linux_x64, program_file -task linux_arm_build, "Build NimHTTPd for Linux (ARM)": - shell compile, linux_arm, program_file - task macosx_x64_build, "Build NimHTTPd for Mac OS X (x64)": shell compile, macosx_x64, program_file@@ -64,14 +56,6 @@ shell "rm", program & ".exe"
echo "\n\n\n LINUX - x64:\n\n" linux_x64_buildTask() shell zip, filename_for("linux", "x64"), program - shell "rm", program - echo "\n\n\n LINUX - x86:\n\n" - linux_x86_buildTask() - shell zip, filename_for("linux", "x86"), program - shell "rm", program - echo "\n\n\n LINUX - ARM:\n\n" - linux_arm_buildTask() - shell zip, filename_for("linux", "arm"), program shell "rm", program echo "\n\n\n MAC OS X - x64:\n\n" macosx_x64_buildTask()
M
src/nimhttpd.nim.cfg
→
src/nimhttpd.nim.cfg
@@ -1,19 +1,12 @@
+# https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/ + + # https://gist.github.com/Drakulix/9881160 -amd64.windows.gcc.path = "/usr/local/mingw/bin" +amd64.windows.gcc.path = "/usr/local/bin" amd64.windows.gcc.exe = "x86_64-w64-mingw32-gcc" amd64.windows.gcc.linkerexe = "x86_64-w64-mingw32-gcc" # http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux -i386.linux.gcc.path = "/usr/local/gcc-4.8.1-for-linux32/bin" -i386.linux.gcc.exe = "i586-pc-linux-gcc" -i386.linux.gcc.linkerexe = "i586-pc-linux-gcc" - -# http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux -amd64.linux.gcc.path = "/usr/local/gcc-4.8.1-for-linux64/bin" -amd64.linux.gcc.exe = "x86_64-pc-linux-gcc" -amd64.linux.gcc.linkerexe = "x86_64-pc-linux-gcc" - -# http://www.jaredwolff.com/toolchains/ -arm.linux.gcc.path = "/usr/local/arm-none-linux-gnueabi/bin" -arm.linux.gcc.exe = "arm-none-linux-gnueabi-gcc" -arm.linux.gcc.linkerexe = "arm-none-linux-gnueabi-gcc" +amd64.linux.gcc.path = "/usr/local/bin" +amd64.linux.gcc.exe = "x86_64-linux-musl-gcc" +amd64.linux.gcc.linkerexe = "x86_64-linux-musl-gcc"