<HTML><HEAD><TITLE>Mail</TITLE>
<META name=GENERATOR 
content="KsDHTMLEDLib.ocx, FreeWare HTML Editor 1.164.2, ?Kurt Senfer">
<META content="text/html; charset=GB2312" http-equiv=Content-Type></HEAD>
<BODY style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体" leftMargin=5 topMargin=5 #ffffff>
<DIV>LLDB offical build help page said that gcc>=4.6.2 is supported ,and 
should set CXXFLAGS=-std=c++0x</DIV>
<DIV>bug CMake build script set CXX_FLAGS to -std=c++11 ,which gcc 4.6 does not 
understand.I suggest a </DIV>
<DIV>patch ,just simply set -std=c++0x when compiler is gcc, which makes gcc 4.6 
works all right. I did not </DIV>
<DIV>add gcc version check because it requires gcc -version output parse,which 
is not very stable across</DIV>
<DIV>different build-config</DIV>
<DIV> </DIV>
<DIV>diff --git a/CMakeLists.txt b/CMakeLists.txt<BR>index d5a28ea..2837a8d 
100644<BR>--- a/CMakeLists.txt<BR>+++ b/CMakeLists.txt<BR>@@ -82,7 +82,14 @@ 
endmacro(add_lldb_definitions)<BR> include_directories(/usr/include/python2.7)<BR> include_directories(../clang/include)<BR> include_directories("${CMAKE_CURRENT_BINARY_DIR}/../clang/include")<BR>-set(CMAKE_CXX_FLAGS 
"-std=c++11")<BR>+<BR>+<BR>+<BR>+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL 
"GNU")<BR>+    set(CMAKE_CXX_FLAGS 
"-std=c++0x")<BR>+else()<BR>+    set(CMAKE_CXX_FLAGS 
"-std=c++11")<BR>+endif()<BR> <BR> # Disable MSVC 
warnings<BR> if( MSVC )</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>
<DIV><U><STRONG>本邮件附件清单如下:</STRONG></U></DIV>
<DIV>  (1) gcc4.6-cmake.patch (0.5 K)</DIV><BR></DIV>
<DIV>comicfans44,<A 
href="mailto:comicfans44@gmail.com">comicfans44@gmail.com</A></DIV>
<DIV>2013-3-18 </DIV></BODY></HTML>