[llvm] r200300 - [CMake] Apply -ffunction-data-sectinos not only to CMAKE_CXX_FLAGS, but also to CMAKE_C_FLAGS.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Jan 28 01:44:00 PST 2014
Author: chapuni
Date: Tue Jan 28 03:44:00 2014
New Revision: 200300
URL: http://llvm.org/viewvc/llvm-project?rev=200300&view=rev
Log:
[CMake] Apply -ffunction-data-sectinos not only to CMAKE_CXX_FLAGS, but also to CMAKE_C_FLAGS.
Modified:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=200300&r1=200299&r2=200300&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue Jan 28 03:44:00 2014
@@ -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()
More information about the llvm-commits
mailing list