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

Side by Side Diff: build/toolchain.gypi

Issue 19009003: Suppress array bounds check for nacl build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Makefile.nacl ('k') | 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 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 'v8_no_strict_aliasing%': 0, 70 'v8_no_strict_aliasing%': 0,
71 71
72 # Chrome needs this definition unconditionally. For standalone V8 builds, 72 # Chrome needs this definition unconditionally. For standalone V8 builds,
73 # it's handled in build/standalone.gypi. 73 # it's handled in build/standalone.gypi.
74 'want_separate_host_toolset%': 1, 74 'want_separate_host_toolset%': 1,
75 75
76 'host_os%': '<(OS)', 76 'host_os%': '<(OS)',
77 'werror%': '-Werror', 77 'werror%': '-Werror',
78 # For a shared library build, results in "libv8-<(soname_version).so". 78 # For a shared library build, results in "libv8-<(soname_version).so".
79 'soname_version%': '', 79 'soname_version%': '',
80
81 # Allow to suppress the array bounds warning (default is no suppression).
82 'wno_array_bounds%': '',
80 }, 83 },
81 'target_defaults': { 84 'target_defaults': {
82 'conditions': [ 85 'conditions': [
83 ['v8_target_arch=="arm"', { 86 ['v8_target_arch=="arm"', {
84 'defines': [ 87 'defines': [
85 'V8_TARGET_ARCH_ARM', 88 'V8_TARGET_ARCH_ARM',
86 ], 89 ],
87 'target_conditions': [ 90 'target_conditions': [
88 ['_toolset=="host"', { 91 ['_toolset=="host"', {
89 'variables': { 92 'variables': {
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 }], 461 }],
459 ], 462 ],
460 }, 463 },
461 'VCLinkerTool': { 464 'VCLinkerTool': {
462 'LinkIncremental': '2', 465 'LinkIncremental': '2',
463 }, 466 },
464 }, 467 },
465 'conditions': [ 468 'conditions': [
466 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { 469 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
467 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 470 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
468 '-Wnon-virtual-dtor', '-Woverloaded-virtual' ], 471 '-Wnon-virtual-dtor', '-Woverloaded-virtual',
472 '<(wno_array_bounds)' ],
469 'conditions': [ 473 'conditions': [
470 ['v8_optimized_debug==1', { 474 ['v8_optimized_debug==1', {
471 'cflags!': [ 475 'cflags!': [
472 '-O0', 476 '-O0',
473 '-O2', 477 '-O2',
474 '-Os', 478 '-Os',
475 ], 479 ],
476 'cflags': [ 480 'cflags': [
477 '-fdata-sections', 481 '-fdata-sections',
478 '-ffunction-sections', 482 '-ffunction-sections',
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 'conditions': [ 527 'conditions': [
524 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { 528 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
525 'cflags!': [ 529 'cflags!': [
526 '-O2', 530 '-O2',
527 '-Os', 531 '-Os',
528 ], 532 ],
529 'cflags': [ 533 'cflags': [
530 '-fdata-sections', 534 '-fdata-sections',
531 '-ffunction-sections', 535 '-ffunction-sections',
532 '-O3', 536 '-O3',
537 '<(wno_array_bounds)',
533 ], 538 ],
534 'conditions': [ 539 'conditions': [
535 [ 'gcc_version==44 and clang==0', { 540 [ 'gcc_version==44 and clang==0', {
536 'cflags': [ 541 'cflags': [
537 # Avoid crashes with gcc 4.4 in the v8 test suite. 542 # Avoid crashes with gcc 4.4 in the v8 test suite.
538 '-fno-tree-vrp', 543 '-fno-tree-vrp',
539 ], 544 ],
540 }], 545 }],
541 ], 546 ],
542 }], 547 }],
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 'OptimizeReferences': '2', 600 'OptimizeReferences': '2',
596 'EnableCOMDATFolding': '2', 601 'EnableCOMDATFolding': '2',
597 }, 602 },
598 }, 603 },
599 }], # OS=="win" 604 }], # OS=="win"
600 ], # conditions 605 ], # conditions
601 }, # Release 606 }, # Release
602 }, # configurations 607 }, # configurations
603 }, # target_defaults 608 }, # target_defaults
604 } 609 }
OLDNEW
« no previous file with comments | « Makefile.nacl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698