From 1a0f8fd4e6cf0467d77969f0105f8625fd036208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Sun, 21 Jan 2018 16:26:22 +0100 Subject: [PATCH] Change default ARM compiler name In most distros (Ubuntu, Debian, Arch Linux) the only available Linux ARM toolchain uses arm-linux-gnueabihf- prefix. That's also the correct compiler for cross-compiling code for Raspberry Pi, which is what most people will probably want. --- config/nim.cfg | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/config/nim.cfg b/config/nim.cfg index 9fddce90a5..a2a774b236 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -16,13 +16,18 @@ cc = gcc hint[LineTooLong]=off #hint[XDeclaredButNotUsed]=off -# example of how to setup a cross-compiler: -arm.linux.gcc.exe = "arm-linux-gcc" -arm.linux.gcc.linkerexe = "arm-linux-gcc" +# Examples of how to setup a cross-compiler: +# Cross-compiling for Raspberry Pi. +# (This compiler is available in gcc-arm-linux-gnueabihf package on Ubuntu) +arm.linux.gcc.exe = "arm-linux-gnueabihf-gcc" +arm.linux.gcc.linkerexe = "arm-linux-gnueabihf-gcc" + +# For OpenWRT, you will also need to adjust PATH to point to your toolchain. mips.linux.gcc.exe = "mips-openwrt-linux-gcc" mips.linux.gcc.linkerexe = "mips-openwrt-linux-gcc" + path="$lib/deprecated/core" path="$lib/deprecated/pure" path="$lib/pure/collections"