projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03d34ca
)
* CMakeLists.txt: Adds warnings flags for g++. Fixes PR 5647.
author
Oscar Fuentes
<ofv@wanadoo.es>
Mon, 30 Nov 2009 23:50:14 +0000
(23:50 +0000)
committer
Oscar Fuentes
<ofv@wanadoo.es>
Mon, 30 Nov 2009 23:50:14 +0000
(23:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90170
91177308
-0d34-0410-b5e6-
96231b3b80d8
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 39ccfbb1082ff2a383a8c317bf67ca3ddd413d7a..d609c84c0d63a37018d4e33978815fea029494db 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-226,6
+226,8
@@
if( MSVC )
add_llvm_definitions("/${LLVM_USE_CRT}")
message(STATUS "Using VC++ CRT: ${LLVM_USE_CRT}")
endif (NOT ${LLVM_USE_CRT} STREQUAL "")
+elseif( CMAKE_COMPILER_IS_GNUCXX )
+ add_llvm_definitions( -Wall -W -Wno-unused-parameter -Wwrite-strings )
endif( MSVC )
include_directories( ${LLVM_BINARY_DIR}/include ${LLVM_MAIN_INCLUDE_DIR})