Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: build/standalone.gypi

Issue 962523002: [gyp] Disable warnings generated by third party ICU code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 # Xcode insists on this empty entry. 192 # Xcode insists on this empty entry.
193 }, 193 },
194 }, 194 },
195 'target_conditions': [ 195 'target_conditions': [
196 ['v8_code == 0', { 196 ['v8_code == 0', {
197 'defines!': [ 197 'defines!': [
198 'DEBUG', 198 'DEBUG',
199 ], 199 ],
200 'conditions': [ 200 'conditions': [
201 ['os_posix == 1 and OS != "mac"', { 201 ['os_posix == 1 and OS != "mac"', {
202 # We don't want to get warnings from third-party code,
203 # so remove any existing warning-enabling flags like -Wall.
202 'cflags!': [ 204 'cflags!': [
205 '-pedantic',
206 '-Wall',
203 '-Werror', 207 '-Werror',
208 '-Wextra',
209 ],
210 'cflags+': [
211 # Clang considers the `register` keyword as deprecated, but
212 # ICU uses it all over the place.
213 '-Wno-deprecated-register',
214 # ICU uses its own deprecated functions.
215 '-Wno-deprecated-declarations',
216 # ICU prefers `a && b || c` over `(a && b) || c`.
217 '-Wno-logical-op-parentheses',
218 # ICU has some `unsigned < 0` checks.
219 '-Wno-tautological-compare',
220 # uresdata.c has switch(RES_GET_TYPE(x)) code. The
221 # RES_GET_TYPE macro returns an UResType enum, but some switch
222 # statement contains case values that aren't part of that
223 # enum (e.g. URES_TABLE32 which is in UResInternalType). This
224 # is on purpose.
225 '-Wno-switch',
226 ],
227 'cflags_cc!': [
228 '-Wnon-virtual-dtor',
204 ], 229 ],
205 }], 230 }],
206 ['OS == "mac"', { 231 ['OS == "mac"', {
207 'xcode_settings': { 232 'xcode_settings': {
208 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror 233 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror
209 }, 234 },
210 }], 235 }],
211 ['OS == "win"', { 236 ['OS == "win"', {
212 'msvs_settings': { 237 'msvs_settings': {
213 'VCCLCompilerTool': { 238 'VCCLCompilerTool': {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', 304 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime',
280 ], 305 ],
281 }, 306 },
282 }], 307 }],
283 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 308 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
284 or OS=="netbsd" or OS=="aix"', { 309 or OS=="netbsd" or OS=="aix"', {
285 'target_defaults': { 310 'target_defaults': {
286 'cflags': [ 311 'cflags': [
287 '-Wall', 312 '-Wall',
288 '<(werror)', 313 '<(werror)',
289 '-W',
290 '-Wno-unused-parameter', 314 '-Wno-unused-parameter',
291 '-Wno-long-long', 315 '-Wno-long-long',
292 '-pthread', 316 '-pthread',
293 '-fno-exceptions', 317 '-fno-exceptions',
294 '-pedantic', 318 '-pedantic',
295 # Don't warn about the "struct foo f = {0};" initialization pattern. 319 # Don't warn about the "struct foo f = {0};" initialization pattern.
296 '-Wno-missing-field-initializers', 320 '-Wno-missing-field-initializers',
297 ], 321 ],
298 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], 322 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ],
299 'ldflags': [ '-pthread', ], 323 'ldflags': [ '-pthread', ],
(...skipping 10 matching lines...) Expand all
310 ], 334 ],
311 }, 335 },
312 }], 336 }],
313 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" 337 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"
314 # or OS=="netbsd"' 338 # or OS=="netbsd"'
315 ['OS=="qnx"', { 339 ['OS=="qnx"', {
316 'target_defaults': { 340 'target_defaults': {
317 'cflags': [ 341 'cflags': [
318 '-Wall', 342 '-Wall',
319 '<(werror)', 343 '<(werror)',
320 '-W',
321 '-Wno-unused-parameter', 344 '-Wno-unused-parameter',
322 '-fno-exceptions', 345 '-fno-exceptions',
323 # Don't warn about the "struct foo f = {0};" initialization pattern. 346 # Don't warn about the "struct foo f = {0};" initialization pattern.
324 '-Wno-missing-field-initializers', 347 '-Wno-missing-field-initializers',
325 ], 348 ],
326 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], 349 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ],
327 'conditions': [ 350 'conditions': [
328 [ 'visibility=="hidden"', { 351 [ 'visibility=="hidden"', {
329 'cflags': [ '-fvisibility=hidden' ], 352 'cflags': [ '-fvisibility=hidden' ],
330 }], 353 }],
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', 476 'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
454 'PREBINDING': 'NO', # No -Wl,-prebind 477 'PREBINDING': 'NO', # No -Wl,-prebind
455 'SYMROOT': '<(DEPTH)/xcodebuild', 478 'SYMROOT': '<(DEPTH)/xcodebuild',
456 'USE_HEADERMAP': 'NO', 479 'USE_HEADERMAP': 'NO',
457 'OTHER_CFLAGS': [ 480 'OTHER_CFLAGS': [
458 '-fno-strict-aliasing', 481 '-fno-strict-aliasing',
459 ], 482 ],
460 'WARNING_CFLAGS': [ 483 'WARNING_CFLAGS': [
461 '-Wall', 484 '-Wall',
462 '-Wendif-labels', 485 '-Wendif-labels',
463 '-W',
464 '-Wno-unused-parameter', 486 '-Wno-unused-parameter',
465 # Don't warn about the "struct foo f = {0};" initialization pattern. 487 # Don't warn about the "struct foo f = {0};" initialization pattern.
466 '-Wno-missing-field-initializers', 488 '-Wno-missing-field-initializers',
467 ], 489 ],
468 }, 490 },
469 'conditions': [ 491 'conditions': [
470 ['werror==""', { 492 ['werror==""', {
471 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, 493 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'},
472 }, { 494 }, {
473 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, 495 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'},
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { 538 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', {
517 'make_global_settings': [ 539 'make_global_settings': [
518 ['CC_wrapper', '<(gomadir)/gomacc'], 540 ['CC_wrapper', '<(gomadir)/gomacc'],
519 ['CXX_wrapper', '<(gomadir)/gomacc'], 541 ['CXX_wrapper', '<(gomadir)/gomacc'],
520 ['CC.host_wrapper', '<(gomadir)/gomacc'], 542 ['CC.host_wrapper', '<(gomadir)/gomacc'],
521 ['CXX.host_wrapper', '<(gomadir)/gomacc'], 543 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
522 ], 544 ],
523 }], 545 }],
524 ], 546 ],
525 } 547 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698