Author: akhaldi
Date: Sun Mar 2 20:27:39 2014
New Revision: 62387
URL:
http://svn.reactos.org/svn/reactos?rev=62387&view=rev
Log:
[CMAKE]
* Use the GCC compatible dialect in Clang builds.
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=62387&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Sun Mar 2 20:27:39 2014
@@ -29,6 +29,10 @@
add_compile_flags("-pipe -fms-extensions -fno-strict-aliasing")
if(GCC_VERSION VERSION_GREATER 4.7)
add_compile_flags("-mstackrealign")
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ add_compile_flags_language("-std=gnu89" "C")
endif()
add_compile_flags_language("-fno-rtti -fno-exceptions" "CXX")