Lines Matching +full:platform +full:- +full:sdk +full:- +full:version
2 # Use of this source code is governed under the Apache License, Version 2.0
16 'recipe_engine/platform',
37 'xcrun', '--toolchain', 'clang', 'clang++', '-xc++', '-fsyntax-only',
38 '-Wp,-v', '/dev/null'
44 # Iterate over all include paths and look for the SDK libc++ one.
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)
129 pkgs.add_package('infra/ninja/${platform}', 'version:1.8.2')
130 if api.platform.is_linux or api.platform.is_mac:
131 pkgs.add_package('fuchsia/third_party/clang/${platform}', 'integration')
132 if api.platform.is_linux:
139 'sysroot-focal')
143 if api.platform.is_linux:
145 api.target('linux-amd64'),
146 api.target('linux-arm64'),
147 api.target('linux-riscv64')
149 elif api.platform.is_mac:
150 return [api.target('mac-amd64'), api.target('mac-arm64')]
158 'args': ['-d'],
163 'args': ['--use-lto', '--use-icf'],
166 'use_jemalloc': api.platform.is_linux,
175 # Maps a target.platform string to the location of the corresponding
181 # may refer to the same platform string (e.g. linux-amd64).
183 # For each platform, a version of jemalloc will be built if necessary,
185 # call _get_compilation_environment. So create a { platform -> Target }
192 if t.platform not in all_config_platforms:
193 all_config_platforms[t.platform] = t
201 ['git', 'fetch', JEMALLOC_GIT_URL, 'refs/tags/' + JEMALLOC_TAG, '--depth=1'])
205 for platform in all_config_platforms:
207 jemalloc_build_dir = jemalloc_src_dir.join('build-' + platform)
209 target = all_config_platforms[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'])
247 jemalloc_static_libs[platform] = jemalloc_static_lib
253 with api.step.nest(target.platform), api.context(
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',
284 cipd_pkg_name = 'gn/gn/%s' % target.platform
300 if api.buildbucket.builder_id.project == 'infra-internal':
304 api.step('Package is up-to-date', cmd=None)
319 for platform in ('linux', 'mac', 'win'):
320 yield (api.test('ci_' + platform) + api.platform.name(platform) +
326 yield (api.test('cq_' + platform) + api.platform.name(platform) +
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', [])))