[llvm-commits] [compiler-rt] r82607 - /compiler-rt/trunk/cmake/Modules/DefineCompilerFlags.cmake

Edward O'Callaghan eocallaghan at auroraux.org
Tue Sep 22 21:57:37 PDT 2009


Author: evocallaghan
Date: Tue Sep 22 23:57:36 2009
New Revision: 82607

URL: http://llvm.org/viewvc/llvm-project?rev=82607&view=rev
Log:
CMake should only pass GCC options to GCC.

Modified:
    compiler-rt/trunk/cmake/Modules/DefineCompilerFlags.cmake

Modified: compiler-rt/trunk/cmake/Modules/DefineCompilerFlags.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/DefineCompilerFlags.cmake?rev=82607&r1=82606&r2=82607&view=diff

==============================================================================
--- compiler-rt/trunk/cmake/Modules/DefineCompilerFlags.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/DefineCompilerFlags.cmake Tue Sep 22 23:57:36 2009
@@ -1,4 +1,6 @@
 # Define compiler flags
 
-#ADD_DEFINITIONS( -Wall -W -Werror -pedantic )
-ADD_DEFINITIONS( -std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter )
+if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
+  #ADD_DEFINITIONS( -Wall -W -Werror -pedantic )
+  ADD_DEFINITIONS( -std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter )
+endif( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )





More information about the llvm-commits mailing list