[PATCH] D41597: CMAKE: disable -mbig-obj for mingw clang asm
Martell Malone via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 27 06:16:18 PST 2017
martell created this revision.
martell added reviewers: rnk, mstorsjo.
Herald added a subscriber: mgorny.
Repository:
rL LLVM
https://reviews.llvm.org/D41597
Files:
cmake/modules/HandleLLVMOptions.cmake
Index: cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- cmake/modules/HandleLLVMOptions.cmake
+++ cmake/modules/HandleLLVMOptions.cmake
@@ -312,7 +312,7 @@
# Pass -mbig-obj to mingw gas on Win64. COFF has a 2**16 section limit, and
# on Win64, every COMDAT function creates at least 3 sections: .text, .pdata,
# and .xdata.
- if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+ if (CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT "${CMAKE_ASM_COMPILER_ID}" MATCHES "Clang")
append("-Wa,-mbig-obj" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41597.128229.patch
Type: text/x-patch
Size: 596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171227/fa06ab20/attachment.bin>
More information about the llvm-commits
mailing list