1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

[CMake] Apply -ffunction-data-sectinos not only to CMAKE_CXX_FLAGS, but also to CMAKE_C_FLAGS.

llvm-svn: 200300
This commit is contained in:
NAKAMURA Takumi 2014-01-28 09:44:00 +00:00
parent 96ebbdc8e5
commit 73fb9bab5e

View File

@ -356,6 +356,6 @@ endif()
# flags instead if LLVM_NO_DEAD_STRIP is set.
if(NOT CYGWIN AND NOT WIN32)
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
append("-ffunction-sections -fdata-sections" CMAKE_CXX_FLAGS)
append("-ffunction-sections -fdata-sections" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
endif()