Changeset 5fdf7a in git for CMakeLists.txt


Ignore:
Timestamp:
Jan 10, 2013, 11:00:55 AM (10 years ago)
Author:
Max Horn <max@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
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.