Skip to content

Commit fa486a2

Browse files
allow MS extensions with MinGW
1 parent f270b4e commit fa486a2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ if(MSVC)
280280
target_compile_options(snmalloc INTERFACE "/Zc:__cplusplus")
281281
endif()
282282

283+
if(MINGW)
284+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
285+
target_compile_options(snmalloc INTERFACE "-fms-extensions")
286+
endif()
287+
endif()
288+
283289
if (CMAKE_SYSTEM_NAME STREQUAL NetBSD)
284290
target_include_directories(snmalloc INTERFACE /usr/pkg/include)
285291
target_link_directories(snmalloc INTERFACE /usr/pkg/lib)

0 commit comments

Comments
 (0)