OLD | NEW |
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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 ], | 405 ], |
406 }, | 406 }, |
407 'conditions':[ | 407 'conditions':[ |
408 ['(clang==1 or host_clang==1) and OS!="win"', { | 408 ['(clang==1 or host_clang==1) and OS!="win"', { |
409 # This is here so that all files get recompiled after a clang roll and | 409 # This is here so that all files get recompiled after a clang roll and |
410 # when turning clang on or off. | 410 # when turning clang on or off. |
411 # (defines are passed via the command line, and build systems rebuild | 411 # (defines are passed via the command line, and build systems rebuild |
412 # things when their commandline changes). Nothing should ever read this | 412 # things when their commandline changes). Nothing should ever read this |
413 # define. | 413 # define. |
414 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh
--print-revision)'], | 414 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh
--print-revision)'], |
415 'cflags+': [ | 415 'conditions': [ |
416 '-Wno-format-pedantic', | 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 }], |
417 ], | 434 ], |
418 }], | 435 }], |
419 ], | 436 ], |
420 'target_conditions': [ | 437 'target_conditions': [ |
421 ['v8_code == 0', { | 438 ['v8_code == 0', { |
422 'defines!': [ | 439 'defines!': [ |
423 'DEBUG', | 440 'DEBUG', |
424 ], | 441 ], |
425 'conditions': [ | 442 'conditions': [ |
426 ['os_posix == 1 and OS != "mac"', { | 443 ['os_posix == 1 and OS != "mac"', { |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 '-fsanitize=cfi-vcall', | 1305 '-fsanitize=cfi-vcall', |
1289 '-fsanitize=cfi-derived-cast', | 1306 '-fsanitize=cfi-derived-cast', |
1290 '-fsanitize=cfi-unrelated-cast', | 1307 '-fsanitize=cfi-unrelated-cast', |
1291 ], | 1308 ], |
1292 }], | 1309 }], |
1293 ], | 1310 ], |
1294 }, | 1311 }, |
1295 }], | 1312 }], |
1296 ], | 1313 ], |
1297 } | 1314 } |
OLD | NEW |