summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2018-01-21 16:11:53 +0000
committerGitHub <noreply@github.com>2018-01-21 16:11:53 +0000
commit6607d013031751bb5d6a92cb831ea06df2811eda (patch)
tree0f0e121883adf52aa538e1ab68bb75aa10b6c8b5
parent81195fc3622bf540e783054923168371193de107 (diff)
parent1a0f8fd4e6cf0467d77969f0105f8625fd036208 (diff)
downloadNim-6607d013031751bb5d6a92cb831ea06df2811eda.tar.gz
Merge pull request #7119 from zielmicha/patch-2
Change default ARM compiler name
-rw-r--r--config/nim.cfg11
1 files changed, 8 insertions, 3 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 9fddce90a..a2a774b23 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"