Unverified Commit 6f723a66 authored by Paul Yang's avatar Paul Yang Committed by GitHub

Always add -std=c++11 for mac (#4684)

parent 4885b805
...@@ -203,11 +203,9 @@ if __name__ == '__main__': ...@@ -203,11 +203,9 @@ if __name__ == '__main__':
v, _, _ = platform.mac_ver() v, _, _ = platform.mac_ver()
if v: if v:
v = float('.'.join(v.split('.')[:2])) extra_compile_args.append('-std=c++11')
if v >= 10.12:
extra_compile_args.append('-std=c++11')
elif os.getenv('KOKORO_BUILD_NUMBER') or os.getenv('KOKORO_BUILD_ID'): 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: if warnings_as_errors in sys.argv:
extra_compile_args.append('-Werror') extra_compile_args.append('-Werror')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment