Changeset View
Changeset View
Standalone View
Standalone View
build_files/cmake/platform/platform_unix.cmake
| Show First 20 Lines • Show All 394 Lines • ▼ Show 20 Lines | else() | ||||
| message(STATUS "GNU gold linker isn't available, using the default system linker.") | message(STATUS "GNU gold linker isn't available, using the default system linker.") | ||||
| endif() | endif() | ||||
| unset(LD_VERSION) | unset(LD_VERSION) | ||||
| endif() | endif() | ||||
| # CLang is the same as GCC for now. | # CLang is the same as GCC for now. | ||||
| elseif(CMAKE_C_COMPILER_ID MATCHES "Clang") | elseif(CMAKE_C_COMPILER_ID MATCHES "Clang") | ||||
| set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing") | set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing") | ||||
| # Solaris CC | |||||
| elseif(CMAKE_C_COMPILER_ID MATCHES "SunPro") | |||||
| set(PLATFORM_CFLAGS "-pipe -features=extensions -fPIC -D__FUNCTION__=__func__") | |||||
| # Intel C++ Compiler | # Intel C++ Compiler | ||||
| elseif(CMAKE_C_COMPILER_ID MATCHES "Intel") | elseif(CMAKE_C_COMPILER_ID MATCHES "Intel") | ||||
| # think these next two are broken | # think these next two are broken | ||||
| find_program(XIAR xiar) | find_program(XIAR xiar) | ||||
| if(XIAR) | if(XIAR) | ||||
| set(CMAKE_AR "${XIAR}") | set(CMAKE_AR "${XIAR}") | ||||
| endif() | endif() | ||||
| mark_as_advanced(XIAR) | mark_as_advanced(XIAR) | ||||
| Show All 14 Lines | |||||