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

Side by Side Diff: gypfiles/standalone.gypi

Issue 2042693003: Revert of [build] Use sysroot for linux compilation with clang (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « DEPS ('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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 # Anything else gets passed through, which probably won't work 56 # Anything else gets passed through, which probably won't work
57 # very well; such hosts should pass an explicit target_arch 57 # very well; such hosts should pass an explicit target_arch
58 # to gyp. 58 # to gyp.
59 'host_arch%': '<!pymod_do_main(detect_v8_host_arch)', 59 'host_arch%': '<!pymod_do_main(detect_v8_host_arch)',
60 }, { 60 }, {
61 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and 61 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and
62 # OS!="netbsd" and OS!="mac" and OS!="aix" 62 # OS!="netbsd" and OS!="mac" and OS!="aix"
63 'host_arch%': 'ia32', 63 'host_arch%': 'ia32',
64 }], 64 }],
65 ], 65 ],
66
67 # By default we build against a stable sysroot image to avoid
68 # depending on the packages installed on the local machine. Set this
69 # to 0 to build against locally installed headers and libraries (e.g.
70 # if packaging for a linux distro)
71 'use_sysroot%': 1,
72 }, 66 },
73 'host_arch%': '<(host_arch)', 67 'host_arch%': '<(host_arch)',
74 'target_arch%': '<(host_arch)', 68 'target_arch%': '<(host_arch)',
75 'use_sysroot%': '<(use_sysroot)',
76 'base_dir%': '<!(cd <(DEPTH) && python -c "import os; print os.getcwd()" )', 69 'base_dir%': '<!(cd <(DEPTH) && python -c "import os; print os.getcwd()" )',
77 70
78 # Instrument for code coverage and use coverage wrapper to exclude some 71 # Instrument for code coverage and use coverage wrapper to exclude some
79 # files. Uses gcov if clang=0 is set explicitly. Otherwise, 72 # files. Uses gcov if clang=0 is set explicitly. Otherwise,
80 # sanitizer_coverage must be set too. 73 # sanitizer_coverage must be set too.
81 'coverage%': 0, 74 'coverage%': 0,
82
83 # Default sysroot if no sysroot can be provided.
84 'sysroot%': '',
85
86 'conditions': [
87 # The system root for linux builds.
88 ['OS=="linux" and use_sysroot==1', {
89 'conditions': [
90 ['target_arch=="arm"', {
91 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _arm-sysroot',
92 }],
93 ['target_arch=="x64"', {
94 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _amd64-sysroot',
95 }],
96 ['target_arch=="ia32"', {
97 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _i386-sysroot',
98 }],
99 ['target_arch=="mipsel"', {
100 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/build/linux/debian_wheezy _mips-sysroot',
101 }],
102 ],
103 }], # OS=="linux" and use_sysroot==1
104 ],
105 }, 75 },
106 'base_dir%': '<(base_dir)', 76 'base_dir%': '<(base_dir)',
107 'host_arch%': '<(host_arch)', 77 'host_arch%': '<(host_arch)',
108 'target_arch%': '<(target_arch)', 78 'target_arch%': '<(target_arch)',
109 'v8_target_arch%': '<(target_arch)', 79 'v8_target_arch%': '<(target_arch)',
110 'coverage%': '<(coverage)', 80 'coverage%': '<(coverage)',
111 'sysroot%': '<(sysroot)',
112 'asan%': 0, 81 'asan%': 0,
113 'lsan%': 0, 82 'lsan%': 0,
114 'msan%': 0, 83 'msan%': 0,
115 'tsan%': 0, 84 'tsan%': 0,
116 # Enable coverage gathering instrumentation in sanitizer tools. This flag 85 # Enable coverage gathering instrumentation in sanitizer tools. This flag
117 # also controls coverage granularity (1 for function-level, 2 for 86 # also controls coverage granularity (1 for function-level, 2 for
118 # block-level, 3 for edge-level). 87 # block-level, 3 for edge-level).
119 'sanitizer_coverage%': 0, 88 'sanitizer_coverage%': 0,
120 # Use libc++ (buildtools/third_party/libc++ and 89 # Use libc++ (buildtools/third_party/libc++ and
121 # buildtools/third_party/libc++abi) instead of stdlibc++ as standard 90 # buildtools/third_party/libc++abi) instead of stdlibc++ as standard
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 'sanitizer_coverage%': '<(sanitizer_coverage)', 154 'sanitizer_coverage%': '<(sanitizer_coverage)',
186 'use_custom_libcxx%': '<(use_custom_libcxx)', 155 'use_custom_libcxx%': '<(use_custom_libcxx)',
187 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', 156 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)',
188 'use_lto%': '<(use_lto)', 157 'use_lto%': '<(use_lto)',
189 'cfi_vptr%': '<(cfi_vptr)', 158 'cfi_vptr%': '<(cfi_vptr)',
190 'cfi_diag%': '<(cfi_diag)', 159 'cfi_diag%': '<(cfi_diag)',
191 'cfi_blacklist%': '<(cfi_blacklist)', 160 'cfi_blacklist%': '<(cfi_blacklist)',
192 'test_isolation_mode%': '<(test_isolation_mode)', 161 'test_isolation_mode%': '<(test_isolation_mode)',
193 'fastbuild%': '<(fastbuild)', 162 'fastbuild%': '<(fastbuild)',
194 'coverage%': '<(coverage)', 163 'coverage%': '<(coverage)',
195 'sysroot%': '<(sysroot)',
196 164
197 # Add a simple extras solely for the purpose of the cctests 165 # Add a simple extras solely for the purpose of the cctests
198 'v8_extra_library_files': ['../test/cctest/test-extra.js'], 166 'v8_extra_library_files': ['../test/cctest/test-extra.js'],
199 'v8_experimental_extra_library_files': ['../test/cctest/test-experimental-ex tra.js'], 167 'v8_experimental_extra_library_files': ['../test/cctest/test-experimental-ex tra.js'],
200 168
201 # .gyp files or targets should set v8_code to 1 if they build V8 specific 169 # .gyp files or targets should set v8_code to 1 if they build V8 specific
202 # code, as opposed to external code. This variable is used to control such 170 # code, as opposed to external code. This variable is used to control such
203 # things as the set of warnings to enable, and whether warnings are treated 171 # things as the set of warnings to enable, and whether warnings are treated
204 # as errors. 172 # as errors.
205 'v8_code%': 0, 173 'v8_code%': 0,
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 # 620 #
653 # Disabled when using GCC LTO because GCC also uses the -B search 621 # Disabled when using GCC LTO because GCC also uses the -B search
654 # path at link time to find "as", and our bundled "as" can only 622 # path at link time to find "as", and our bundled "as" can only
655 # target x86. 623 # target x86.
656 'ldflags': [ 624 'ldflags': [
657 # Note, Chromium allows ia32 host arch as well, we limit this to 625 # Note, Chromium allows ia32 host arch as well, we limit this to
658 # x64 in v8. 626 # x64 in v8.
659 '-B<(base_dir)/third_party/binutils/Linux_x64/Release/bin', 627 '-B<(base_dir)/third_party/binutils/Linux_x64/Release/bin',
660 ], 628 ],
661 }], 629 }],
662 ['sysroot!="" and clang==1', {
663 'target_conditions': [
664 ['_toolset=="target"', {
665 'cflags': [
666 '--sysroot=<(sysroot)',
667 ],
668 'ldflags': [
669 '--sysroot=<(sysroot)',
670 '<!(<(DEPTH)/build/linux/sysroot_ld_path.sh <(sysroot))',
671 ],
672 }]]
673 }],
674 ], 630 ],
675 }, 631 },
676 }], 632 }],
677 ['OS=="mac"', { 633 ['OS=="mac"', {
678 'target_defaults': { 634 'target_defaults': {
679 'conditions': [ 635 'conditions': [
680 ['asan==1', { 636 ['asan==1', {
681 'xcode_settings': { 637 'xcode_settings': {
682 # FIXME(machenbach): This is outdated compared to common.gypi. 638 # FIXME(machenbach): This is outdated compared to common.gypi.
683 'OTHER_CFLAGS+': [ 639 'OTHER_CFLAGS+': [
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 '-fsanitize=cfi-vcall', 1423 '-fsanitize=cfi-vcall',
1468 '-fsanitize=cfi-derived-cast', 1424 '-fsanitize=cfi-derived-cast',
1469 '-fsanitize=cfi-unrelated-cast', 1425 '-fsanitize=cfi-unrelated-cast',
1470 ], 1426 ],
1471 }], 1427 }],
1472 ], 1428 ],
1473 }, 1429 },
1474 }], 1430 }],
1475 ], 1431 ],
1476 } 1432 }
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698