[PATCH] D107620: [profile] Build with -fms-extensions in MinGW mode
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 9 01:39:25 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG94c001d64658: [profile] Build with -fms-extensions in MinGW mode (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107620/new/
https://reviews.llvm.org/D107620
Files:
compiler-rt/lib/profile/CMakeLists.txt
Index: compiler-rt/lib/profile/CMakeLists.txt
===================================================================
--- compiler-rt/lib/profile/CMakeLists.txt
+++ compiler-rt/lib/profile/CMakeLists.txt
@@ -114,6 +114,9 @@
append_list_if(COMPILER_RT_HAS_NOSTDINCXX_FLAG -nostdinc++ EXTRA_FLAGS)
# XRay uses C++ standard library headers.
string(REGEX REPLACE "-stdlib=[a-zA-Z+]*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+# The Windows specific code uses a #pragma comment(linker, ...) which requires
+# -fms-extensions on MinGW targets.
+append_list_if(MINGW -fms-extensions EXTRA_FLAGS)
# This appears to be a C-only warning banning the use of locals in aggregate
# initializers. All other compilers accept this, though.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107620.365123.patch
Type: text/x-patch
Size: 724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210809/f89496e2/attachment.bin>
More information about the llvm-commits
mailing list