From: Cheng Zhao Date: Thu, 15 Jan 2015 01:40:24 +0000 (-0800) Subject: Use C++11 stdlib X-Git-Tag: v0.20.7~13^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=65d2540807e77c2c4248513120c0591ce205f210;p=electron.git Use C++11 stdlib --- diff --git a/common.gypi b/common.gypi index 68d9418f..1d656c2d 100644 --- a/common.gypi +++ b/common.gypi @@ -184,9 +184,7 @@ ], 'target_defaults': { 'cflags_cc': [ - # Use gnu++11 instead of c++11 here, see: - # https://code.google.com/p/chromium/issues/detail?id=224515 - '-std=gnu++11', + '-std=c++11', ], 'xcode_settings': { 'CC': '/usr/bin/clang', @@ -199,6 +197,8 @@ ], 'GCC_C_LANGUAGE_STANDARD': 'c99', # -std=c99 + 'CLANG_CXX_LIBRARY': 'libc++', # -stdlib=libc++ + 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', # -std=c++11 }, }, }], # clang==1