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

Side by Side Diff: build/untrusted.gypi

Issue 11363175: Honor werror variable for untrusted builds. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix nits Created 8 years, 1 month 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 | « build/standalone_flags.gypi ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 # See native_client/Sconstruct for more details. 7 # See native_client/Sconstruct for more details.
8 # Expected address for beginning of data in for the IRT. 8 # Expected address for beginning of data in for the IRT.
9 'NACL_IRT_DATA_START': '0x3ef00000', 9 'NACL_IRT_DATA_START': '0x3ef00000',
10 # Expected address for beginning of code in for the IRT. 10 # Expected address for beginning of code in for the IRT.
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 '<(DEPTH)/native_client/build/build_nexe.py', 336 '<(DEPTH)/native_client/build/build_nexe.py',
337 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', 337 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/',
338 '>@(extra_args)', 338 '>@(extra_args)',
339 '--arch', 'arm', 339 '--arch', 'arm',
340 '--build', 'newlib_nexe', 340 '--build', 'newlib_nexe',
341 '--root', '<(DEPTH)', 341 '--root', '<(DEPTH)',
342 '--name', '>(out_newlib_arm)', 342 '--name', '>(out_newlib_arm)',
343 '--objdir', '>(objdir_newlib_arm)', 343 '--objdir', '>(objdir_newlib_arm)',
344 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include _dirs)', 344 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include _dirs)',
345 '--lib-dirs=>(lib_dirs_newlib_arm) ', 345 '--lib-dirs=>(lib_dirs_newlib_arm) ',
346 '--compile_flags=--pnacl-frontend-triple=armv7-unknown-nacl-gn ueabi -mfloat-abi=hard ^(pnacl_compile_flags) >(_pnacl_compile_flags) ^(compile_ flags) >(_compile_flags)', 346 '--compile_flags=--pnacl-frontend-triple=armv7-unknown-nacl-gn ueabi -mfloat-abi=hard ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
347 '--defines=^(defines) >(_defines)', 347 '--defines=^(defines) >(_defines)',
348 '--link_flags=-arch arm --pnacl-allow-translate --pnacl-allow- native -B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^(link_flags) >(_link_flags )', 348 '--link_flags=-arch arm --pnacl-allow-translate --pnacl-allow- native -B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^(link_flags) >(_link_flags )',
349 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour ces))', 349 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour ces))',
350 ], 350 ],
351 }, 351 },
352 ], 352 ],
353 }], 353 }],
354 ['nlib_target!="" and build_newlib!=0', { 354 ['nlib_target!="" and build_newlib!=0', {
355 'variables': { 355 'variables': {
356 'tool_name': 'newlib', 356 'tool_name': 'newlib',
(...skipping 19 matching lines...) Expand all
376 '<(DEPTH)/native_client/build/build_nexe.py', 376 '<(DEPTH)/native_client/build/build_nexe.py',
377 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', 377 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/',
378 '>@(extra_args)', 378 '>@(extra_args)',
379 '--arch', 'arm', 379 '--arch', 'arm',
380 '--build', 'newlib_nlib', 380 '--build', 'newlib_nlib',
381 '--root', '<(DEPTH)', 381 '--root', '<(DEPTH)',
382 '--name', '>(out_newlib_arm)', 382 '--name', '>(out_newlib_arm)',
383 '--objdir', '>(objdir_newlib_arm)', 383 '--objdir', '>(objdir_newlib_arm)',
384 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include _dirs)', 384 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include _dirs)',
385 '--lib-dirs=>(lib_dirs_newlib_arm) ', 385 '--lib-dirs=>(lib_dirs_newlib_arm) ',
386 '--compile_flags=--pnacl-frontend-triple=armv7-unknown-nacl-gn ueabi -mfloat-abi=hard ^(pnacl_compile_flags) >(_pnacl_compile_flags) ^(compile_ flags) >(_compile_flags)', 386 '--compile_flags=--pnacl-frontend-triple=armv7-unknown-nacl-gn ueabi -mfloat-abi=hard ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
387 '--defines=^(defines) >(_defines)', 387 '--defines=^(defines) >(_defines)',
388 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^( link_flags) >(_link_flags)', 388 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^( link_flags) >(_link_flags)',
389 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour ces))', 389 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour ces))',
390 ], 390 ],
391 }, 391 },
392 ], 392 ],
393 }], 393 }],
394 ], 394 ],
395 }, 395 },
396 }], 396 }],
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 ], 644 ],
645 }], 645 }],
646 ], 646 ],
647 }, 647 },
648 }], 648 }],
649 ], 649 ],
650 'target_defaults': { 650 'target_defaults': {
651 'gcc_compile_flags': [], 651 'gcc_compile_flags': [],
652 'pnacl_compile_flags': [], 652 'pnacl_compile_flags': [],
653 'variables': { 653 'variables': {
654 # Enable -Werror by default, but put it in a variable so it can
655 # be disabled (e.g. by ~/.gyp/include.gypi).
656 'werror%': '-Werror',
Mark Seaborn 2012/11/15 00:26:01 Hmm, this is probably redundant because build/comm
654 'build_pnacl_newlib': 0, 657 'build_pnacl_newlib': 0,
655 'nlib_target': '', 658 'nlib_target': '',
656 'extra_deps_pnacl_newlib': [], 659 'extra_deps_pnacl_newlib': [],
657 'lib_dirs_pnacl_newlib': [], 660 'lib_dirs_pnacl_newlib': [],
658 'compile_flags': [ 661 'compile_flags': [
659 '<@(nacl_default_compile_flags)', 662 '<@(nacl_default_compile_flags)',
660 ], 663 ],
661 'gcc_compile_flags': [ 664 'gcc_compile_flags': [
662 '-fomit-frame-pointer', 665 '-fomit-frame-pointer',
663 # A debugger should be able to unwind IRT call frames. As the IRT is 666 # A debugger should be able to unwind IRT call frames. As the IRT is
664 # compiled with high level of optimizations and without debug info, 667 # compiled with high level of optimizations and without debug info,
665 # compiler is requested to generate unwind tables explicitly. This 668 # compiler is requested to generate unwind tables explicitly. This
666 # is the default behavior on x86-64 and when compiling C++ with 669 # is the default behavior on x86-64 and when compiling C++ with
667 # exceptions enabled, the change is for the benefit of x86-32 C. 670 # exceptions enabled, the change is for the benefit of x86-32 C.
668 # These are only required for the IRT but are here for all 671 # These are only required for the IRT but are here for all
669 # nacl-gcc-compiled binaries because the IRT depends on other libs 672 # nacl-gcc-compiled binaries because the IRT depends on other libs
670 '-fasynchronous-unwind-tables', 673 '-fasynchronous-unwind-tables',
671 ], 674 ],
672 'newlib_tls_flags': [ 675 'newlib_tls_flags': [
673 '-mtls-use-call', 676 '-mtls-use-call',
674 ], 677 ],
675 'pnacl_compile_flags': [ 678 'pnacl_compile_flags': [
676 '-Wno-extra-semi', 679 '-Wno-extra-semi',
677 '-Wno-unused-private-field', 680 '-Wno-unused-private-field',
678 ], 681 ],
679 }, 682 },
683 'compile_flags': [
684 '<(werror)', # See note above about the werror variable.
685 ],
680 'target_conditions': [ 686 'target_conditions': [
681 ['nexe_target!="" and build_pnacl_newlib!=0', { 687 ['nexe_target!="" and build_pnacl_newlib!=0', {
682 'variables': { 688 'variables': {
683 'out_pnacl_newlib_x86_32_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac l_newlib_x32.nexe', 689 'out_pnacl_newlib_x86_32_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac l_newlib_x32.nexe',
684 'out_pnacl_newlib_x86_64_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac l_newlib_x64.nexe', 690 'out_pnacl_newlib_x86_64_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac l_newlib_x64.nexe',
685 'out_pnacl_newlib_arm_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_n ewlib_arm.nexe', 691 'out_pnacl_newlib_arm_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_n ewlib_arm.nexe',
686 'tool_name': 'pnacl_newlib', 692 'tool_name': 'pnacl_newlib',
687 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib', 693 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib',
688 'out_pnacl_newlib%': '<(PRODUCT_DIR)/>(nexe_target)_newlib.pexe', 694 'out_pnacl_newlib%': '<(PRODUCT_DIR)/>(nexe_target)_newlib.pexe',
689 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_target_na me)', 695 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_target_na me)',
(...skipping 21 matching lines...) Expand all
711 '<(DEPTH)/native_client/build/build_nexe.py', 717 '<(DEPTH)/native_client/build/build_nexe.py',
712 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', 718 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/',
713 '>@(extra_args)', 719 '>@(extra_args)',
714 '--arch', 'pnacl', 720 '--arch', 'pnacl',
715 '--build', 'newlib_pexe', 721 '--build', 'newlib_pexe',
716 '--root', '<(DEPTH)', 722 '--root', '<(DEPTH)',
717 '--name', '>(out_pnacl_newlib)', 723 '--name', '>(out_pnacl_newlib)',
718 '--objdir', '>(objdir_pnacl_newlib)', 724 '--objdir', '>(objdir_pnacl_newlib)',
719 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir s)', 725 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir s)',
720 '--lib-dirs=>(lib_dirs_pnacl_newlib)', 726 '--lib-dirs=>(lib_dirs_pnacl_newlib)',
721 '--compile_flags=^(pnacl_compile_flags) >(_pnacl_compile_flags) ^( compile_flags) >(_compile_flags)', 727 '--compile_flags=^(compile_flags) >(_compile_flags) ^(pnacl_compil e_flags) >(_pnacl_compile_flags)',
722 '--defines=^(defines) >(_defines)', 728 '--defines=^(defines) >(_defines)',
723 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l ink_flags) >(_link_flags)', 729 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l ink_flags) >(_link_flags)',
724 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source s))', 730 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source s))',
725 ], 731 ],
726 }], 732 }],
727 'target_conditions': [ 733 'target_conditions': [
728 [ 'enable_x86_32!=0', { 734 [ 'enable_x86_32!=0', {
729 'actions': [{ 735 'actions': [{
730 'action_name': 'translate newlib pexe to x86-32 nexe', 736 'action_name': 'translate newlib pexe to x86-32 nexe',
731 'msvs_cygwin_shell': 0, 737 'msvs_cygwin_shell': 0,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 '<(DEPTH)/native_client/build/build_nexe.py', 828 '<(DEPTH)/native_client/build/build_nexe.py',
823 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', 829 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/',
824 '>@(extra_args)', 830 '>@(extra_args)',
825 '--arch', 'pnacl', 831 '--arch', 'pnacl',
826 '--build', 'newlib_plib', 832 '--build', 'newlib_plib',
827 '--root', '<(DEPTH)', 833 '--root', '<(DEPTH)',
828 '--name', '>(out_pnacl_newlib)', 834 '--name', '>(out_pnacl_newlib)',
829 '--objdir', '>(objdir_pnacl_newlib)', 835 '--objdir', '>(objdir_pnacl_newlib)',
830 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir s)', 836 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir s)',
831 '--lib-dirs=>(lib_dirs_pnacl_newlib) ', 837 '--lib-dirs=>(lib_dirs_pnacl_newlib) ',
832 '--compile_flags=^(pnacl_compile_flags) >(_pnacl_compile_flags) ^( compile_flags) >(_compile_flags)', 838 '--compile_flags=^(compile_flags) >(_compile_flags) ^(pnacl_compil e_flags) >(_pnacl_compile_flags)',
833 '--defines=^(defines) >(_defines)', 839 '--defines=^(defines) >(_defines)',
834 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l ink_flags) >(_link_flags)', 840 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l ink_flags) >(_link_flags)',
835 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source s))', 841 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source s))',
836 ], 842 ],
837 }, 843 },
838 ], 844 ],
839 }], 845 }],
840 ], 846 ],
841 }, 847 },
842 } 848 }
OLDNEW
« no previous file with comments | « build/standalone_flags.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698