summaryrefslogtreecommitdiff
path: root/configurecompiler.cmake
diff options
context:
space:
mode:
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>2019-02-20 16:59:22 (GMT)
committerJan Kotas <jkotas@microsoft.com>2019-02-20 16:59:22 (GMT)
commit1a1bb292ab53c0c30d35dc396c7089c1da5b3c82 (patch)
treebd590b373c55ad23997b9cdd3979951479d5beaf /configurecompiler.cmake
parent3c2e989c61c7466bc6d061e03277dbbd8a7e54e9 (diff)
downloadcoreclr-1a1bb292ab53c0c30d35dc396c7089c1da5b3c82.zip
coreclr-1a1bb292ab53c0c30d35dc396c7089c1da5b3c82.tar.gz
coreclr-1a1bb292ab53c0c30d35dc396c7089c1da5b3c82.tar.bz2
Abstract deprecated and selectany for GCC and remove LLVM'ism where possible (#22662)
* Abstract selectany * Fix initializer element is not constant src/corefx/System.Globalization.Native/pal_icushim.c:58:34: error: initializer element is not constant static const int MaxICUVersion = MinICUVersion + 20; * Enable ms extensions * Apply LLVM patterns to GCC * Remove deprecated function * Fix const conversion error src/corefx/System.Globalization.Native/pal_calendarData.c:390:16: warning: passing argument 1 of ‘ures_close_ptr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] ures_close(erasResBundle); src/corefx/System.Globalization.Native/pal_calendarData.c:419:22: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] char* name = GetCalendarName(calendarId); * Remove old compiler option
Diffstat (limited to 'configurecompiler.cmake')
-rw-r--r--configurecompiler.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake
index dd0ee96..f5eb063 100644
--- a/configurecompiler.cmake
+++ b/configurecompiler.cmake
@@ -477,6 +477,7 @@ if (CLR_CMAKE_PLATFORM_UNIX)
else()
add_compile_options(-Wno-unused-variable)
add_compile_options(-Wno-unused-but-set-variable)
+ add_compile_options(-fms-extensions)
endif()
# Some architectures (e.g., ARM) assume char type is unsigned while CoreCLR assumes char is signed