diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-09-23 04:57:36 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-09-23 04:57:36 +0000 |
commit | 87aa4f57c5050881519f5023f22d62a868a79d7f (patch) | |
tree | 931515bcf9e37eb14323aa43a0ce49f069620e4d /cmake | |
parent | b0f3cb3c458bbb41f51c3c7e766f29d81e7c3dff (diff) | |
download | compiler-rt-87aa4f57c5050881519f5023f22d62a868a79d7f.tar.gz |
CMake should only pass GCC options to GCC.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@82607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/DefineCompilerFlags.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake index 4c570ab68..9e262b94b 100644 --- a/cmake/Modules/DefineCompilerFlags.cmake +++ b/cmake/Modules/DefineCompilerFlags.cmake @@ -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 ) |