Skip to content
Snippets Groups Projects
Commit e6eaaebd authored by Eidolon's avatar Eidolon
Browse files

Merge branch 'clang-bitfields' into 'master'

explicit -mno-ms-bitfields for clang

See merge request !94
parents 508825df 1cbb2661
No related branches found
No related tags found
No related merge requests found
Pipeline #7397 failed
...@@ -408,7 +408,7 @@ endif() ...@@ -408,7 +408,7 @@ endif()
# Compatibility flag with later versions of GCC # Compatibility flag with later versions of GCC
# We should really fix our code to not need this # We should really fix our code to not need this
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
check_cxx_compiler_flag("-mno-ms-bitfields" HAS_NO_MS_BITFIELDS) check_cxx_compiler_flag("-mno-ms-bitfields" HAS_NO_MS_BITFIELDS)
if(HAS_NO_MS_BITFIELDS) if(HAS_NO_MS_BITFIELDS)
target_compile_options(SRB2SDL2 PRIVATE -mno-ms-bitfields) target_compile_options(SRB2SDL2 PRIVATE -mno-ms-bitfields)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment