From d14181f3b1dd2fc1b46d7fae953c0cf7288e8306 Mon Sep 17 00:00:00 2001 From: Sylvain Defresne Date: Tue, 19 Sep 2017 12:44:41 +0000 Subject: [PATCH] Remove override of C standard on iOS/macOS. The CL https://chromium-review.googlesource.com/578630 configured all platform to use C11 but did not remove the code enabling C99 on iOS/macOS. This caused iOS/macOS to use an older standard. Bug: 766484 Change-Id: I31090257abe4feb770a0b088cfa657e2b42ca624 Reviewed-on: https://chromium-review.googlesource.com/671349 Reviewed-by: Robert Sesek Commit-Queue: Sylvain Defresne Cr-Original-Commit-Position: refs/heads/master@{#502832} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 7b0bfa078e3aff89974e6772cf2fa4e670e4f136 --- config/ios/BUILD.gn | 3 --- config/mac/BUILD.gn | 3 --- 2 files changed, 6 deletions(-) diff --git a/config/ios/BUILD.gn b/config/ios/BUILD.gn index 4d3986807..e768343cc 100644 --- a/config/ios/BUILD.gn +++ b/config/ios/BUILD.gn @@ -64,9 +64,6 @@ config("compiler") { # an Objective C struct won't be called, which is very bad. cflags_objcc = [ "-fobjc-call-cxx-cdtors" ] - cflags_c = [ "-std=c99" ] - cflags_objc = cflags_c - ldflags = common_ios_flags } diff --git a/config/mac/BUILD.gn b/config/mac/BUILD.gn index eb5f45b5f..45740bbf4 100644 --- a/config/mac/BUILD.gn +++ b/config/mac/BUILD.gn @@ -37,9 +37,6 @@ config("compiler") { # an Objective C struct won't be called, which is very bad. cflags_objcc = [ "-fobjc-call-cxx-cdtors" ] - cflags_c = [ "-std=c99" ] - cflags_objc = cflags_c - ldflags = common_mac_flags if (save_unstripped_output) {