Commit 7d982517 authored by thakis's avatar thakis Committed by Commit bot

mac: use -std=c++11 instead of -std=gnu++11.

Linux and Android need some more work before this can
happen there. No intended behavior change.

BUG=427584

Review URL: https://codereview.chromium.org/679143004

Cr-Commit-Position: refs/heads/master@{#302310}
parent baa7546a
...@@ -4075,8 +4075,10 @@ ...@@ -4075,8 +4075,10 @@
'-Wno-reserved-user-defined-literal', '-Wno-reserved-user-defined-literal',
], ],
'cflags_cc': [ 'cflags_cc': [
# See the comment in the Mac section for what it takes to move # gnu++11 instead of c++11 is needed because some code uses
# this to -std=c++11. # typeof() (a GNU extension).
# TODO(thakis): Eventually switch this to c++11 instead,
# http://crbug.com/427584
'-std=gnu++11', '-std=gnu++11',
], ],
}], }],
...@@ -4831,12 +4833,7 @@ ...@@ -4831,12 +4833,7 @@
# Note that the prebuilt Clang binaries should not be used for iOS # Note that the prebuilt Clang binaries should not be used for iOS
# development except for ASan builds. # development except for ASan builds.
['clang==1', { ['clang==1', {
# gnu++11 instead of c++11 is needed because some code uses 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', # -std=c++11
# typeof() (a GNU extension).
# TODO(thakis): Eventually switch this to c++11 instead of
# gnu++11 (once typeof can be removed, which is blocked on c++11
# being available everywhere).
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', # -std=gnu++11
# Warn if automatic synthesis is triggered with # Warn if automatic synthesis is triggered with
# the -Wobjc-missing-property-synthesis flag. # the -Wobjc-missing-property-synthesis flag.
'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
......
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