Changeset 5fdf7a in git for CMakeLists.txt


Ignore:
Timestamp:
Jan 10, 2013, 11:00:55 AM (12 years ago)
Author:
Max Horn <max@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '3720ae8bfcff4a4649ee98a15552089151d2d59b')
Children:
d101b165f063c8f437a101b437baa6095a596422
Parents:
80c703d0b975055386088b85c7bcdd5c7684adc0
git-author:
Max Horn <max@quendi.de>2013-01-10 11:00:55+01:00
git-committer:
Oleksandr Motsak <http://goo.gl/mcpzY>2013-01-10 16:45:07+01:00
Message:
Replace --no-{rtti,exceptions} by -fno-{rtti,exceptions}

This improves compatibility with clang. Moreover, to the best
of my knowledge, the --no-* variants are undocumented to start with.
At least the GCC manuals for all versions from 2.95.3 till 4.7.2
only list the -fno-* variants, as far as I could tell.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r80c703 r5fdf7a  
    121121  #set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -Winline -Wno-non-virtual-dtor")
    122122  set(CMAKE_C_FLAGS "-w -pipe ")
    123   set(CMAKE_CXX_FLAGS "-w  -pipe ") #--no-rtti
     123  set(CMAKE_CXX_FLAGS "-w  -pipe ") #-fno-rtti
    124124  # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
    125125  # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
    126126
    127127  set(CMAKE_C_FLAGS_RELEASE "-O3 -fomit-frame-pointer")
    128   set(CMAKE_CXX_FLAGS_RELEASE "-O3 --no-rtti -fomit-frame-pointer")
     128  set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-rtti -fomit-frame-pointer")
    129129
    130130  #set(CMAKE_C_FLAGS_RELEASE "-O2 -fomit-frame-pointer -DNDEBUG ")
Note: See TracChangeset for help on using the changeset viewer.