Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8677 for code/branches


Ignore:
Timestamp:
May 30, 2011, 12:31:28 AM (14 years ago)
Author:
rgrieder
Message:

The COUNTER macro required for full build units was only added in GCC 4.3.
Warn the developer if using GCC < 4.3 and full build units.

Location:
code/branches/unity_build
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/cmake/CompilerConfigGCC.cmake

    r8368 r8677  
    4343IF(_compare_result GREATER -1)
    4444  SET(PCH_COMPILER_SUPPORT TRUE)
     45ENDIF()
     46
     47# __COUNTER__ macro was only added in GCC 4.3
     48# It might be required to make full build units work
     49COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.3.0" _compare_result)
     50IF(_compare_result GREATER -1)
     51  SET(HAVE_COUNTER_MACRO TRUE)
    4552ENDIF()
    4653
  • code/branches/unity_build/cmake/CompilerConfigMSVC.cmake

    r8368 r8677  
    3333# Orxonox only supports MSVC 8 and above, which gets asserted above
    3434SET(PCH_COMPILER_SUPPORT TRUE)
     35
     36# __COUNTER__ macro has been around since VS 2005
     37# It might be required to make full build units work
     38SET(HAVE_COUNTER_MACRO TRUE)
    3539
    3640
  • code/branches/unity_build/src/OrxonoxConfig.cmake

    r8633 r8677  
    5050    ELSE()
    5151      SET(NR_OF_BUILD_UNITS ${_nr_of_units})
     52      IF(NOT HAVE_COUNTER_MACRO)
     53        MESSAGE(WARNING "Your compiler doesn't support the __COUNTER__ macro. Full build units might not work!")
     54      ENDIF()
    5255    ENDIF()
    5356  ENDIF()
Note: See TracChangeset for help on using the changeset viewer.