Author: akhaldi
Date: Sun Sep 7 12:36:26 2014
New Revision: 64060
URL:
http://svn.reactos.org/svn/reactos?rev=64060&view=rev
Log:
[CMAKE/CLANG]
* Fix Clang def file handling.
* Clang doesn't have -Wold-style-declaration (yet?).
Modified:
trunk/reactos/cmake/gcc.cmake
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=64060&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Sun Sep 7 12:36:26 2014
@@ -34,11 +34,16 @@
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")
-endif()
+ 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