aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2018-05-25 14:42:41 -0700
committerGitHub <noreply@github.com>2018-05-25 14:42:41 -0700
commit6f723a6624de0e0f9b1ae16ae002e678613e07b8 (patch)
treed083b4ae2a56a8701b9351cfccd28bac2d50c7c0
parent4885b8058a93c1a16efe41fd1830d321e9bb2ce6 (diff)
downloadprotobuf-6f723a6624de0e0f9b1ae16ae002e678613e07b8.tar.gz
protobuf-6f723a6624de0e0f9b1ae16ae002e678613e07b8.tar.bz2
protobuf-6f723a6624de0e0f9b1ae16ae002e678613e07b8.zip
Always add -std=c++11 for mac (#4684)
-rwxr-xr-xpython/setup.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/python/setup.py b/python/setup.py
index 9a328cb5..a9df075e 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -203,11 +203,9 @@ if __name__ == '__main__':
v, _, _ = platform.mac_ver()
if v:
- v = float('.'.join(v.split('.')[:2]))
- if v >= 10.12:
- extra_compile_args.append('-std=c++11')
+ extra_compile_args.append('-std=c++11')
elif os.getenv('KOKORO_BUILD_NUMBER') or os.getenv('KOKORO_BUILD_ID'):
- extra_compile_args.append('-std=c++11')
+ extra_compile_args.append('-std=c++11')
if warnings_as_errors in sys.argv:
extra_compile_args.append('-Werror')