mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 00:52:16 +00:00
Fix rtti=off and exception-handling=off for gcc.
Patch from Alexey Nikitin. [SVN r80893]
This commit is contained in:
@@ -381,7 +381,9 @@ toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : -Werror ;
|
||||
|
||||
toolset.flags gcc.compile OPTIONS <debug-symbols>on : -g ;
|
||||
toolset.flags gcc.compile OPTIONS <profiling>on : -pg ;
|
||||
toolset.flags gcc.compile OPTIONS <rtti>off : -fno-rtti ;
|
||||
|
||||
toolset.flags gcc.compile.c++ OPTIONS <rtti>off : -fno-rtti ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <exception-handling>off : -fno-exceptions ;
|
||||
|
||||
rule setup-fpic ( targets * : sources * : properties * )
|
||||
{
|
||||
|
||||
@@ -282,7 +282,9 @@ flags('gcc.compile', 'OPTIONS', ['<warnings-as-errors>on'], ['-Werror'])
|
||||
|
||||
flags('gcc.compile', 'OPTIONS', ['<debug-symbols>on'], ['-g'])
|
||||
flags('gcc.compile', 'OPTIONS', ['<profiling>on'], ['-pg'])
|
||||
flags('gcc.compile', 'OPTIONS', ['<rtti>off'], ['-fno-rtti'])
|
||||
|
||||
flags('gcc.compile.c++', 'OPTIONS', ['<rtti>off'], ['-fno-rtti'])
|
||||
flags('gcc.compile.c++', 'OPTIONS', ['<exception-handling>off'], ['-fno-exceptions'])
|
||||
|
||||
# On cygwin and mingw, gcc generates position independent code by default, and
|
||||
# warns if -fPIC is specified. This might not be the right way of checking if
|
||||
|
||||
Reference in New Issue
Block a user