diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2018-05-25 14:42:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 14:42:41 -0700 |
commit | 6f723a6624de0e0f9b1ae16ae002e678613e07b8 (patch) | |
tree | d083b4ae2a56a8701b9351cfccd28bac2d50c7c0 | |
parent | 4885b8058a93c1a16efe41fd1830d321e9bb2ce6 (diff) | |
download | protobuf-6f723a6624de0e0f9b1ae16ae002e678613e07b8.tar.gz protobuf-6f723a6624de0e0f9b1ae16ae002e678613e07b8.tar.bz2 protobuf-6f723a6624de0e0f9b1ae16ae002e678613e07b8.zip |
Always add -std=c++11 for mac (#4684)
-rwxr-xr-x | python/setup.py | 6 |
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') |