summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2012-06-04 01:56:10 +0300
committerZahary Karadjov <zahary@gmail.com>2012-06-04 01:56:42 +0300
commit4105a91c4841f836949ce0c4f1d3090b8b83ac2e (patch)
tree02120c4c7929eb433f185d72d22bacebd11a5d09 /config
parent3294cb10a944e9c80ccb87173bbd0896597447c9 (diff)
downloadNim-4105a91c4841f836949ce0c4f1d3090b8b83ac2e.tar.gz
fix compilation errors when bootstrapping with C++
Diffstat (limited to 'config')
-rwxr-xr-xconfig/nimrod.cfg22
1 files changed, 11 insertions, 11 deletions
diff --git a/config/nimrod.cfg b/config/nimrod.cfg
index c98f30f02..fdab40c6c 100755
--- a/config/nimrod.cfg
+++ b/config/nimrod.cfg
@@ -62,6 +62,7 @@ hint[LineTooLong]=off
   @if not bsd:
     # -fopenmp
     gcc.options.linker = "-ldl"
+    gpp.options.linker = "-ldl"
     clang.options.linker = "-ldl"
     tcc.options.linker = "-ldl"
   @else:
@@ -83,24 +84,23 @@ icc.options.linker = "-cxxlib"
     tlsEmulation:on
   @end
 @end
-gcc.options.debug = "-g3 -O0"
 
 @if macosx:
   tlsEmulation:on
-  @if not release:
-    gcc.options.always = "-w -fasm-blocks -O1"
-  @else:
-    gcc.options.always = "-w -fasm-blocks"
-  @end
+  gcc.options.always = "-w -fasm-blocks"
+  gpp.options.always = "-w -fasm-blocks"
 @else:
-  @if not release:
-    gcc.options.always = "-w"
-  @else:
-    gcc.options.always = "-w"
-  @end
+  gcc.options.always = "-w"
+  gpp.options.always = "-w"
 @end
+
 gcc.options.speed = "-O3 -fno-strict-aliasing"
 gcc.options.size = "-Os"
+gcc.options.debug = "-g3 -O0"
+
+gpp.options.speed = "-O3 -fno-strict-aliasing"
+gpp.options.size = "-Os"
+gpp.options.debug = "-g3 -O0"
 #passl = "-pg"
 
 # Configuration for the LLVM GCC compiler: