Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3161 for code/branches


Ignore:
Timestamp:
Jun 13, 2009, 11:29:15 PM (15 years ago)
Author:
rgrieder
Message:

Workaround for GCC < 4.2.0 to avoid a bug

Location:
code/branches/pch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/cmake/BuildConfigGCC.cmake

    r3117 r3161  
    7777ADD_COMPILER_FLAGS("-Wno-deprecated" CXX CACHE)
    7878
     79# Always show why a precompiled header file could not be used
     80ADD_COMPILER_FLAGS("-Winvalid-pch" CXX CACHE)
     81
    7982# Increase warning level if requested
    8083IF(EXTRA_COMPILER_WARNINGS)
  • code/branches/pch/cmake/GetGCCCompilerFlags.cmake

    r3117 r3161  
    4242
    4343  # For shared libraries linked with gcc, we have to add -fPIC
    44   #GET_TARGET_PROPERTY(_target_type ${_target} TYPE)
    45   #IF(${_target_type} STREQUAL SHARED_LIBRARY)
    46   #  SET(_flag_str "${_flag_str} -fPIC")
    47   #ENDIF()
     44  GET_TARGET_PROPERTY(_target_type ${_target} TYPE)
     45  IF(NOT MINGW AND ${_target_type} STREQUAL SHARED_LIBRARY)
     46    SET(_flag_str "${_flag_str} -fPIC")
     47  ENDIF()
    4848
    4949  # Target compile flags
  • code/branches/pch/src/core/CorePrecompiledHeaders.h

    r3160 r3161  
    5858#include <tinyxml/ticpp.h>
    5959
    60 #include "util/Convert.h"
     60// GCC may have problems with anonymous namespaces in certain situations
     61#if !(defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 420))
     62#  include "util/Convert.h"
     63#endif
    6164#include "util/Debug.h"
    6265#include "util/Exception.h"
Note: See TracChangeset for help on using the changeset viewer.