Don't use c++0x.
authorCryptoManiac <balthazar.ad@gmail.com>
Sat, 17 Oct 2015 19:42:53 +0000 (22:42 +0300)
committerCryptoManiac <balthazar.ad@gmail.com>
Sat, 17 Oct 2015 19:42:53 +0000 (22:42 +0300)
src/leveldb/build_detect_platform

index a1101c1..336bf1d 100755 (executable)
@@ -190,19 +190,7 @@ if [ "$CROSS_COMPILE" = "true" ]; then
     true
 else
     CXXOUTPUT="${TMPDIR}/leveldb_build_detect_platform-cxx.$$"
-
-    # If -std=c++0x works, use <atomic> as fallback for when memory barriers
-    # are not available.
-    $CXX $CXXFLAGS -std=c++0x -x c++ - -o $CXXOUTPUT 2>/dev/null  <<EOF
-      #include <atomic>
-      int main() {}
-EOF
-    if [ "$?" = 0 ]; then
-        COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX -DLEVELDB_ATOMIC_PRESENT"
-        PLATFORM_CXXFLAGS="-std=c++0x"
-    else
-        COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX"
-    fi
+    COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX"
 
     # Test whether tcmalloc is available
     $CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT -ltcmalloc 2>/dev/null  <<EOF