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

Side by Side Diff: tools/gn/bootstrap/bootstrap.py

Issue 2782063005: Explicitly specify whether to emit frame pointers by default. (Closed)
Patch Set: arm64 -> arm Created 3 years, 8 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 | « chrome/browser/chromeos/libc_close_tracking.cc ('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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This file isn't officially supported by the Chromium project. It's maintained 6 # This file isn't officially supported by the Chromium project. It's maintained
7 # on a best-effort basis by volunteers, so some things may be broken from time 7 # on a best-effort basis by volunteers, so some things may be broken from time
8 # to time. If you encounter errors, it's most often due to files in base that 8 # to time. If you encounter errors, it's most often due to files in base that
9 # have been added or moved since somebody last tried this script. Generally 9 # have been added or moved since somebody last tried this script. Generally
10 # such errors are easy to diagnose. 10 # such errors are easy to diagnose.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 def build_gn_with_ninja_manually(tempdir, options): 164 def build_gn_with_ninja_manually(tempdir, options):
165 root_gen_dir = os.path.join(tempdir, 'gen') 165 root_gen_dir = os.path.join(tempdir, 'gen')
166 mkdir_p(root_gen_dir) 166 mkdir_p(root_gen_dir)
167 167
168 write_buildflag_header_manually(root_gen_dir, 'base/allocator/features.h', 168 write_buildflag_header_manually(root_gen_dir, 'base/allocator/features.h',
169 {'USE_EXPERIMENTAL_ALLOCATOR_SHIM': 'true' if is_linux else 'false'}) 169 {'USE_EXPERIMENTAL_ALLOCATOR_SHIM': 'true' if is_linux else 'false'})
170 170
171 write_buildflag_header_manually(root_gen_dir, 'base/debug/debugging_flags.h', 171 write_buildflag_header_manually(root_gen_dir, 'base/debug/debugging_flags.h',
172 { 172 {
173 'ENABLE_PROFILING': 'false', 173 'ENABLE_PROFILING': 'false',
174 'ENABLE_MEMORY_TASK_PROFILER': 'false' 174 'ENABLE_MEMORY_TASK_PROFILER': 'false',
175 'CAN_UNWIND_WITH_FRAME_POINTERS': 'false'
175 }) 176 })
176 177
177 write_build_date_header(root_gen_dir) 178 write_build_date_header(root_gen_dir)
178 179
179 if is_mac: 180 if is_mac:
180 # //base/build_time.cc needs base/generated_build_date.h, 181 # //base/build_time.cc needs base/generated_build_date.h,
181 # and this file is only included for Mac builds. 182 # and this file is only included for Mac builds.
182 mkdir_p(os.path.join(root_gen_dir, 'base')) 183 mkdir_p(os.path.join(root_gen_dir, 'base'))
183 check_call([ 184 check_call([
184 os.path.join(SRC_ROOT, 'build', 'write_build_date_header.py'), 185 os.path.join(SRC_ROOT, 'build', 'write_build_date_header.py'),
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 cmd.append('-v') 778 cmd.append('-v')
778 cmd.append('gn') 779 cmd.append('gn')
779 check_call(cmd) 780 check_call(cmd)
780 781
781 if not options.debug and not is_win: 782 if not options.debug and not is_win:
782 check_call(['strip', os.path.join(build_dir, 'gn')]) 783 check_call(['strip', os.path.join(build_dir, 'gn')])
783 784
784 785
785 if __name__ == '__main__': 786 if __name__ == '__main__':
786 sys.exit(main(sys.argv[1:])) 787 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/libc_close_tracking.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698