mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
[CMAKE/CLANG]
* Fix Clang def file handling. * Clang doesn't have -Wold-style-declaration (yet?). svn path=/trunk/; revision=64060
This commit is contained in:
parent
8795b7177e
commit
d7d700b347
1 changed files with 6 additions and 1 deletions
|
@ -34,11 +34,16 @@ endif()
|
|||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_flags_language("-std=gnu89" "C")
|
||||
add_compile_flags("-Wno-microsoft")
|
||||
set(CMAKE_LINK_DEF_FILE_FLAG "")
|
||||
endif()
|
||||
|
||||
if(DBG)
|
||||
add_compile_flags_language("-Wold-style-declaration -Wdeclaration-after-statement" "C")
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_flags_language("-Wold-style-declaration" "C")
|
||||
endif()
|
||||
add_compile_flags_language("-Wdeclaration-after-statement" "C")
|
||||
endif()
|
||||
|
||||
add_compile_flags_language("-fno-rtti -fno-exceptions" "CXX")
|
||||
|
||||
#bug
|
||||
|
|
Loading…
Reference in a new issue