Skip to content

Commit d7f813b

Browse files
akos.palfiCommit bot
authored andcommitted
GYP: Don't pass -Wno-format-pedantic to GCC.
This flag is not understood correctly by GCC and breaks the GCC ARM and MIPS optdebug builds. Patch from Brendan Kirby <[email protected]> BUG= Review URL: https://codereview.chromium.org/1369273003 Cr-Commit-Position: refs/heads/master@{#31013}
1 parent 5ff8a18 commit d7f813b

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

build/standalone.gypi

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,25 @@
412412
# things when their commandline changes). Nothing should ever read this
413413
# define.
414414
'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh --print-revision)'],
415-
'cflags+': [
416-
'-Wno-format-pedantic',
415+
'conditions': [
416+
['host_clang==1', {
417+
'target_conditions': [
418+
['_toolset=="host"', {
419+
'cflags+': [
420+
'-Wno-format-pedantic',
421+
],
422+
}],
423+
],
424+
}],
425+
['clang==1', {
426+
'target_conditions': [
427+
['_toolset=="target"', {
428+
'cflags+': [
429+
'-Wno-format-pedantic',
430+
],
431+
}],
432+
],
433+
}],
417434
],
418435
}],
419436
],

0 commit comments

Comments
 (0)