From: DongHun Kwak Date: Wed, 29 Aug 2018 00:09:38 +0000 (+0900) Subject: Change c++ compile option ( c++0x -> c++11 ) X-Git-Tag: submit/tizen/20180829.011802^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_5.0;p=platform%2Fupstream%2Fleveldb.git Change c++ compile option ( c++0x -> c++11 ) [Model] All [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] c++0x is old complie option [Cause & Measure] change compile option [Checking Method] unit test success [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: Ia10cfaed3c29cc75612449ef3743343279275074 Signed-off-by: DongHun Kwak --- diff --git a/build_detect_platform b/build_detect_platform index d2a20ce..29d93ba 100755 --- a/build_detect_platform +++ b/build_detect_platform @@ -191,13 +191,13 @@ else # If -std=c++0x works, use as fallback for when memory barriers # are not available. - $CXX $CXXFLAGS -std=c++0x -x c++ - -o $CXXOUTPUT 2>/dev/null </dev/null < int main() {} EOF if [ "$?" = 0 ]; then COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX -DLEVELDB_ATOMIC_PRESENT" - PLATFORM_CXXFLAGS="-std=c++0x" + PLATFORM_CXXFLAGS="-std=c++11" else COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX" fi