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

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

Issue 2902043007: allocator: rename use_experimental_allocator_shim to use_allocator_shim (Closed)
Patch Set: Created 3 years, 7 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 | « services/service_manager/embedder/main.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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 os.path.join(SRC_ROOT, 'build', 'write_build_date_header.py'), 160 os.path.join(SRC_ROOT, 'build', 'write_build_date_header.py'),
161 os.path.join(root_gen_dir, 'base/generated_build_date.h'), 161 os.path.join(root_gen_dir, 'base/generated_build_date.h'),
162 'default', 162 'default',
163 ]) 163 ])
164 164
165 def build_gn_with_ninja_manually(tempdir, options): 165 def build_gn_with_ninja_manually(tempdir, options):
166 root_gen_dir = os.path.join(tempdir, 'gen') 166 root_gen_dir = os.path.join(tempdir, 'gen')
167 mkdir_p(root_gen_dir) 167 mkdir_p(root_gen_dir)
168 168
169 write_buildflag_header_manually(root_gen_dir, 'base/allocator/features.h', 169 write_buildflag_header_manually(root_gen_dir, 'base/allocator/features.h',
170 {'USE_EXPERIMENTAL_ALLOCATOR_SHIM': 'true' if is_linux else 'false'}) 170 {'USE_ALLOCATOR_SHIM': 'true' if is_linux else 'false'})
171 171
172 write_buildflag_header_manually(root_gen_dir, 'base/debug/debugging_flags.h', 172 write_buildflag_header_manually(root_gen_dir, 'base/debug/debugging_flags.h',
173 { 173 {
174 'ENABLE_PROFILING': 'false', 174 'ENABLE_PROFILING': 'false',
175 'ENABLE_MEMORY_TASK_PROFILER': 'false', 175 'ENABLE_MEMORY_TASK_PROFILER': 'false',
176 'CAN_UNWIND_WITH_FRAME_POINTERS': 'false' 176 'CAN_UNWIND_WITH_FRAME_POINTERS': 'false'
177 }) 177 })
178 178
179 write_build_date_header(root_gen_dir) 179 write_build_date_header(root_gen_dir)
180 180
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 cmd.append('-v') 818 cmd.append('-v')
819 cmd.append('gn') 819 cmd.append('gn')
820 check_call(cmd) 820 check_call(cmd)
821 821
822 if not options.debug and not is_win: 822 if not options.debug and not is_win:
823 check_call(['strip', os.path.join(build_dir, 'gn')]) 823 check_call(['strip', os.path.join(build_dir, 'gn')])
824 824
825 825
826 if __name__ == '__main__': 826 if __name__ == '__main__':
827 sys.exit(main(sys.argv[1:])) 827 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « services/service_manager/embedder/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698