Boost logo

Boost-Build :

Subject: Re: [Boost-build] [build] Darwin g++: error: unrecognized command line option ‘-no-cpp-precomp’
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-04-21 13:15:09


Le 21/04/12 18:53, Vicente J. Botet Escriba a écrit :
> Hi,
>
> I'm getting the following compile error
>
> g++: error: unrecognized command line option ‘-no-cpp-precomp’
>
> The same error occurs with gcc-4.6.2.
> The error doesn't occurs on trunk.
>
> Is this a know issue?
>
>
After applying this patch things start to works without compiler errors

Could someone take care of this issue?

Best,
Vicente

svn diff
Index: v2/tools/darwin.py
===================================================================
--- v2/tools/darwin.py (revision 78113)
+++ v2/tools/darwin.py (working copy)
@@ -37,7 +37,8 @@
  feature.feature ('framework', [], ['free'])

  toolset.flags ('darwin.compile', 'OPTIONS', '<link>shared', ['-dynamic'])
-toolset.flags ('darwin.compile', 'OPTIONS', None, ['-Wno-long-double',
'-no-cpp-precomp'])
+#toolset.flags ('darwin.compile', 'OPTIONS', None, ['-Wno-long-double',
'-no-cpp-precomp'])
+toolset.flags ('darwin.compile', 'OPTIONS', None, ['-Wno-long-double'])
  toolset.flags ('darwin.compile.c++', 'OPTIONS', None,
['-fcoalesce-templates'])

  toolset.flags ('darwin.link', 'FRAMEWORK', '<framework>')
Index: v2/tools/darwin.jam
===================================================================
--- v2/tools/darwin.jam (revision 78113)
+++ v2/tools/darwin.jam (working copy)
@@ -498,7 +498,8 @@
  flags darwin.compile OPTIONS <link>shared : -dynamic ;

  # Misc options.
-flags darwin.compile OPTIONS : -no-cpp-precomp -gdwarf-2 -fexceptions ;
+#flags darwin.compile OPTIONS : -no-cpp-precomp -gdwarf-2 -fexceptions ;
+flags darwin.compile OPTIONS : -gdwarf-2 -fexceptions ;
  #~ flags darwin.link OPTIONS : -fexceptions ;

  # Add the framework names to use.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk