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

Side by Side Diff: build/common.gypi

Issue 517803004: Reland https://codereview.chromium.org/298333007/: Enable mac_strip_release under ASan on OSX. Remo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « build/asan.saves ('k') | chrome/app/app_asan.saves » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 ['asan==1 and OS=="linux" and chromeos==0', { 2134 ['asan==1 and OS=="linux" and chromeos==0', {
2135 'use_custom_libcxx%': 1, 2135 'use_custom_libcxx%': 1,
2136 }], 2136 }],
2137 ['ubsan==1', { 2137 ['ubsan==1', {
2138 'clang%': 1, 2138 'clang%': 1,
2139 }], 2139 }],
2140 ['ubsan_vptr==1', { 2140 ['ubsan_vptr==1', {
2141 'clang%': 1, 2141 'clang%': 1,
2142 }], 2142 }],
2143 ['asan==1 and OS=="mac"', { 2143 ['asan==1 and OS=="mac"', {
2144 # TODO(glider): we do not strip ASan binaries until the dynamic ASan 2144 # Strip and produce the .dSYM files.
2145 # runtime is fully adopted. See http://crbug.com/242503. 2145 'mac_strip_release': 1,
2146 'mac_strip_release': 0,
2147 }], 2146 }],
2148 ['tsan==1', { 2147 ['tsan==1', {
2149 'use_custom_libcxx%': 1, 2148 'use_custom_libcxx%': 1,
2150 }], 2149 }],
2151 ['msan==1', { 2150 ['msan==1', {
2152 # Use a just-built, MSan-instrumented libc++ instead of the system-wide 2151 # Use a just-built, MSan-instrumented libc++ instead of the system-wide
2153 # libstdc++. This is required to avoid false positive reports whenever 2152 # libstdc++. This is required to avoid false positive reports whenever
2154 # the C++ standard library is used. 2153 # the C++ standard library is used.
2155 'use_custom_libcxx%': 1, 2154 'use_custom_libcxx%': 1,
2156 # Running the V8-generated code on an ARM simulator is a powerful hack 2155 # Running the V8-generated code on an ARM simulator is a powerful hack
(...skipping 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after
4979 }], 4978 }],
4980 ], 4979 ],
4981 }, 4980 },
4982 'postbuild_name': 'Change Mach-O Flags', 4981 'postbuild_name': 'Change Mach-O Flags',
4983 'action': [ 4982 'action': [
4984 '<(change_mach_o_flags_path)', 4983 '<(change_mach_o_flags_path)',
4985 '>@(change_mach_o_flags_options)', 4984 '>@(change_mach_o_flags_options)',
4986 ], 4985 ],
4987 }, 4986 },
4988 ], 4987 ],
4989 'conditions': [
4990 ['asan==1', {
4991 'variables': {
4992 'asan_saves_file': 'asan.saves',
4993 },
4994 'xcode_settings': {
4995 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)',
4996 },
4997 }],
4998 ],
4999 'target_conditions': [ 4988 'target_conditions': [
5000 ['mac_pie==1 and release_valgrind_build==0', { 4989 ['mac_pie==1 and release_valgrind_build==0', {
5001 # Turn on position-independence (ASLR) for executables. When 4990 # Turn on position-independence (ASLR) for executables. When
5002 # PIE is on for the Chrome executables, the framework will 4991 # PIE is on for the Chrome executables, the framework will
5003 # also be subject to ASLR. 4992 # also be subject to ASLR.
5004 # Don't do this when building for Valgrind, because Valgrind 4993 # Don't do this when building for Valgrind, because Valgrind
5005 # doesn't understand slide. TODO: Make Valgrind on Mac OS X 4994 # doesn't understand slide. TODO: Make Valgrind on Mac OS X
5006 # understand slide, and get rid of the Valgrind check. 4995 # understand slide, and get rid of the Valgrind check.
5007 'xcode_settings': { 4996 'xcode_settings': {
5008 'OTHER_LDFLAGS': [ 4997 'OTHER_LDFLAGS': [
(...skipping 19 matching lines...) Expand all
5028 'STRIP_INSTALLED_PRODUCT': 'YES', 5017 'STRIP_INSTALLED_PRODUCT': 'YES',
5029 'target_conditions': [ 5018 'target_conditions': [
5030 ['_type=="shared_library" or _type=="loadable_module"', { 5019 ['_type=="shared_library" or _type=="loadable_module"', {
5031 # The Xcode default is to strip debugging symbols 5020 # The Xcode default is to strip debugging symbols
5032 # only (-S). Local symbols should be stripped as 5021 # only (-S). Local symbols should be stripped as
5033 # well, which will be handled by -x. Xcode will 5022 # well, which will be handled by -x. Xcode will
5034 # continue to insert -S when stripping even when 5023 # continue to insert -S when stripping even when
5035 # additional flags are added with STRIPFLAGS. 5024 # additional flags are added with STRIPFLAGS.
5036 'STRIPFLAGS': '-x', 5025 'STRIPFLAGS': '-x',
5037 }], # _type=="shared_library" or _type=="loadable_modul e" 5026 }], # _type=="shared_library" or _type=="loadable_modul e"
5038 ['_type=="executable"', {
5039 'conditions': [
5040 ['asan==1', {
5041 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)',
5042 }]
5043 ],
5044 }], # _type=="executable" and asan==1
5045 ], # target_conditions 5027 ], # target_conditions
5046 }, # xcode_settings 5028 }, # xcode_settings
5047 }, # configuration "Release" 5029 }, # configuration "Release"
5048 }, # configurations 5030 }, # configurations
5049 }, { # mac_real_dsym != 1 5031 }, { # mac_real_dsym != 1
5050 # To get a fast fake .dSYM bundle, use a post-build step to 5032 # To get a fast fake .dSYM bundle, use a post-build step to
5051 # produce the .dSYM and strip the executable. strip_from_xcode 5033 # produce the .dSYM and strip the executable. strip_from_xcode
5052 # only operates in the Release configuration. 5034 # only operates in the Release configuration.
5053 'postbuilds': [ 5035 'postbuilds': [
5054 { 5036 {
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
5766 # settings in target dicts. SYMROOT is a special case, because many other 5748 # settings in target dicts. SYMROOT is a special case, because many other
5767 # Xcode variables depend on it, including variables such as 5749 # Xcode variables depend on it, including variables such as
5768 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5750 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5769 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5751 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5770 # files to appear (when present) in the UI as actual files and not red 5752 # files to appear (when present) in the UI as actual files and not red
5771 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5753 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5772 # and therefore SYMROOT, needs to be set at the project level. 5754 # and therefore SYMROOT, needs to be set at the project level.
5773 'SYMROOT': '<(DEPTH)/xcodebuild', 5755 'SYMROOT': '<(DEPTH)/xcodebuild',
5774 }, 5756 },
5775 } 5757 }
OLDNEW
« no previous file with comments | « build/asan.saves ('k') | chrome/app/app_asan.saves » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698