summary refs log tree commit diff stats
path: root/tools/niminst
diff options
context:
space:
mode:
authorMikhail Sobolev <mss@mawhrin.net>2015-01-12 11:16:52 +0200
committerMikhail Sobolev <mss@mawhrin.net>2015-01-12 11:16:52 +0200
commit342608db0c65191251da75020eba42afd30d6c70 (patch)
tree9140cdb3813c5de7e749052d2b5b7b716b6f8edd /tools/niminst
parent9d0ae0391855f51fac9fd82f064917f4977eb8dd (diff)
downloadNim-342608db0c65191251da75020eba42afd30d6c70.tar.gz
make FreeBSD's compiler clang
* there's not much documentation about what's in nim.cfg file
* the build.sh template was updated based on darwin
Diffstat (limited to 'tools/niminst')
-rw-r--r--tools/niminst/buildsh.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/niminst/buildsh.tmpl b/tools/niminst/buildsh.tmpl
index 4966af07a..d9508f515 100644
--- a/tools/niminst/buildsh.tmpl
+++ b/tools/niminst/buildsh.tmpl
@@ -54,10 +54,16 @@ case $uos in
     myos="linux" 
     LINK_FLAGS="$LINK_FLAGS -ldl -lm"
     ;;
-  *freebsd* | *dragonfly* ) 
+  *dragonfly* )
     myos="freebsd"
     LINK_FLAGS="$LINK_FLAGS -lm"
     ;;
+  *freebsd* )
+    myos="freebsd"
+    CC="clang"
+    LINKER="clang"
+    LINK_FLAGS="$LINK_FLAGS -ldl -lm"
+    ;;
   *openbsd* )
     myos="openbsd" 
     LINK_FLAGS="$LINK_FLAGS -lm"