mirror of https://github.com/OpenTTD/OpenTTD
Codefix ad5da0c: clang-cl doesn't need /Zc:preprocessor
parent
b1bba967a1
commit
43c574ecfb
|
@ -8,11 +8,9 @@ macro(compile_flags)
|
||||||
# C++11 standard". We need C++11 for the way we use threads.
|
# C++11 standard". We need C++11 for the way we use threads.
|
||||||
add_compile_options(/Zc:rvalueCast)
|
add_compile_options(/Zc:rvalueCast)
|
||||||
|
|
||||||
# Needed for __VA_OPT__() in macros.
|
|
||||||
add_compile_options(/Zc:preprocessor)
|
|
||||||
|
|
||||||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
|
/Zc:preprocessor # Needed for __VA_OPT__() in macros.
|
||||||
/MP # Enable multi-threaded compilation.
|
/MP # Enable multi-threaded compilation.
|
||||||
/FC # Display the full path of source code files passed to the compiler in diagnostics.
|
/FC # Display the full path of source code files passed to the compiler in diagnostics.
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue