Support Companion build with clang-cl on Windows (fw/libsimu not working yet due to compiler-specific macros in that code).

This commit is contained in:
Max Paperno
2018-07-09 12:02:26 -04:00
parent d507dbb5dd
commit 6110bbce98
4 changed files with 17 additions and 6 deletions
+3 -1
View File
@@ -75,7 +75,9 @@ if(WIN32)
endif(WIN32)
if(MSVC)
set(CMAKE_CXX_FLAGS "/EHsc /LD /MP")
if(NOT CLANG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /LD /MP")
endif()
else()
if(MINGW)
# struct packing breaks on MinGW w/out -mno-ms-bitfields: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991 & http://stackoverflow.com/questions/24015852/struct-packing-and-alignment-with-mingw