From 6f723a6624de0e0f9b1ae16ae002e678613e07b8 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Fri, 25 May 2018 14:42:41 -0700 Subject: Always add -std=c++11 for mac (#4684) --- python/setup.py | 6 ++---- 1 file 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') -- cgit v1.2.3