Lines Matching +full:rev +full:- +full:parse
37 'xcrun', '--toolchain', 'clang', 'clang++', '-xc++', '-fsyntax-only',
38 '-Wp,-v', '/dev/null'
55 triple = '--target=%s' % target.triple
56 if target.triple == 'riscv64-linux-gnu':
57 sysroot = '--sysroot=%s' % cipd_dir.join('sysroot-focal')
59 sysroot = '--sysroot=%s' % cipd_dir.join('sysroot')
63 'AR': cipd_dir.join('bin', 'llvm-ar'),
65 'LDFLAGS': '%s %s -static-libstdc++' % (triple, sysroot),
68 triple = '--target=%s' % target.triple
69 sysroot = '--sysroot=%s' % api.step(
70 'xcrun sdk-path', ['xcrun', '--show-sdk-path'],
71 stdout=api.raw_io.output_text(name='sdk-path', add_output_log=True),
82 cipd_dir.join('bin', 'llvm-ar'),
84 '%s %s -nostdinc++ -cxx-isystem %s' %
112 api.step('fetch', ['git', 'fetch', '--tags', repository, ref])
115 'rev-parse', ['git', 'rev-parse', 'HEAD'],
121 (str(change.change)[-2:], change.change, change.patchset)
139 'sysroot-focal')
145 api.target('linux-amd64'),
146 api.target('linux-arm64'),
147 api.target('linux-riscv64')
150 return [api.target('mac-amd64'), api.target('mac-arm64')]
158 'args': ['-d'],
163 'args': ['--use-lto', '--use-icf'],
181 # may refer to the same platform string (e.g. linux-amd64).
185 # call _get_compilation_environment. So create a { platform -> Target }
201 ['git', 'fetch', JEMALLOC_GIT_URL, 'refs/tags/' + JEMALLOC_TAG, '--depth=1'])
207 jemalloc_build_dir = jemalloc_src_dir.join('build-' + platform)
215 # CFLAGS: -Wno-error is required to avoid warnings that break
218 # CXXFLAGS: Required to pass the right --target=<target> argument
220 # otherwise that file will not be properly cross-compiled.
222 # Note that -flto is never passed to CFLAGS/CXXFLAGS/LDFLAGS, since
226 env['CFLAGS'] += " -Wno-error"
229 api.step('prepare %s build' % platform, ['mkdir', '-p', jemalloc_build_dir])
231 with api.step.nest('build jemalloc-' + platform), api.context(
237 '--build=' + host_target.triple,
238 '--host=' + target.triple,
239 '--disable-shared',
240 '--enable-static',
241 '--disable-syscall',
242 '--disable-stats',
244 api.step('build', ['make', '-j%d' % api.platform.cpu_count, 'build_lib_static'])
258 '--link-lib=%s' % jemalloc_static_libs[target.platform]
262 ['python3', '-u', src_dir.join('build', 'gen.py')] + args)
266 [cipd_dir.join('ninja'), '-C',
300 if api.buildbucket.builder_id.project == 'infra-internal':
304 api.step('Package is up-to-date', cmd=None)
333 project='infra-internal',
337 'git.rev-parse', api.raw_io.stream_output_text('a' * 40)
339 'release.linux-amd64.upload.cipd search gn/gn/linux-amd64 git_revision:' +
341 api.cipd.example_search('gn/gn/linux-amd64',
345 project='infra-internal',
349 'git.rev-parse', api.raw_io.stream_output_text('a' * 40)
351 'release.linux-amd64.upload.cipd search gn/gn/linux-amd64 git_revision:' +
352 'a' * 40, api.cipd.example_search('gn/gn/linux-amd64', [])))