Home
last modified time | relevance | path

Searched refs:arch (Results 1 – 25 of 75) sorted by relevance

123

/build/soong/rust/config/
Dtoolchain.go124 arch := t.LibclangRuntimeLibraryArch()
125 if arch == "" {
129 return "libclang_rt." + library + "-" + arch
131 return "libclang_rt." + library + "-" + arch + "-android"
135 arch := t.LibclangRuntimeLibraryArch()
136 if arch == "" {
140 return "librustc_rt." + library + "-" + arch
142 return "librustc_rt." + library + "-" + arch + "-android"
149 type toolchainFactory func(arch android.Arch) Toolchain
153 func registerToolchainFactory(os android.OsType, arch android.ArchType, factory toolchainFactory) {
[all …]
Darm_device.go79 func ArmToolchainFactory(arch android.Arch) Toolchain {
82 "${config.Arm" + arch.ArchVariant + "VariantRustFlags}",
87 for _, feature := range arch.ArchFeatures {
Dx86_device.go87 func x86ToolchainFactory(arch android.Arch) Toolchain {
90 "${config.X86" + arch.ArchVariant + "VariantRustFlags}",
95 for _, feature := range arch.ArchFeatures {
Dx86_64_device.go84 func x86_64ToolchainFactory(arch android.Arch) Toolchain {
87 "${config.X86_64" + arch.ArchVariant + "VariantRustFlags}",
92 for _, feature := range arch.ArchFeatures {
Darm64_device.go79 func Arm64ToolchainFactory(arch android.Arch) Toolchain {
80 archVariant := arch.ArchVariant
94 for _, feature := range arch.ArchFeatures {
/build/bazel/platforms/
DBUILD.bazel12 # These model after the arch and OS definitions in build/soong/android/arch.go.
21 "//build/bazel/platforms/arch:x86",
29 "//build/bazel/platforms/arch:x86_64",
39 "//build/bazel/platforms/arch:arm64",
47 "//build/bazel/platforms/arch:x86_64",
56 "//build/bazel/platforms/arch:x86_64",
65 "//build/bazel/platforms/arch:x86",
73 "//build/bazel/platforms/arch:x86_64",
83 "//build/bazel/platforms/arch:arm",
91 "//build/bazel/platforms/arch:arm64",
[all …]
/build/soong/bazel/
Dproperties.go239 func (attr *LabelAttribute) GetValueForArch(arch string) Label {
240 switch arch {
256 func (attr *LabelAttribute) SetValueForArch(arch string, value Label) {
257 switch arch {
323 for arch := range PlatformArchMap {
324 this := attrs.GetValueForArch(arch)
325 that := other.GetValueForArch(arch)
327 attrs.SetValueForArch(arch, this)
343 for arch := range PlatformArchMap {
344 if len(attrs.GetValueForArch(arch).Includes) > 0 {
[all …]
Daquery_test.go228 for _, arch := range []string{"arm", "arm64", "x86", "x86_64"} {
233 arch, arch),
235 fmt.Sprintf("bazel-out/sourceroot/k8-fastbuild/bin/bionic/libc/syscalls-%s.S", arch),
/build/soong/cc/config/
Dtoolchain.go24 type toolchainFactory func(arch android.Arch) Toolchain
28 func registerToolchainFactory(os android.OsType, arch android.ArchType, factory toolchainFactory) {
32 toolchainFactories[os][arch] = factory
57 func FindToolchain(os android.OsType, arch android.Arch) Toolchain {
58 t, err := findToolchain(os, arch)
65 func findToolchain(os android.OsType, arch android.Arch) (Toolchain, error) {
66 factory := toolchainFactories[os][arch.ArchType]
68 return nil, fmt.Errorf("Toolchain not found for %s arch %q", os.String(), arch.String())
70 return factory(arch), nil
210 arch := t.LibclangRuntimeLibraryArch()
[all …]
Darm64_device.go207 func arm64ToolchainFactory(arch android.Arch) Toolchain {
208 switch arch.ArchVariant {
215 panic(fmt.Sprintf("Unknown ARM architecture version: %q", arch.ArchVariant))
218 toolchainClangCflags := []string{arm64ClangArchVariantCflagsVar[arch.ArchVariant]}
220 variantOrDefault(arm64ClangCpuVariantCflagsVar, arch.CpuVariant))
223 switch arch.CpuVariant {
Darm_device.go318 func armToolchainFactory(arch android.Arch) Toolchain {
323 toolchainClangCflags[1] = armClangArchVariantCflagsVar[arch.ArchVariant]
326 variantOrDefault(armClangCpuVariantCflagsVar, arch.CpuVariant))
328 switch arch.ArchVariant {
330 switch arch.CpuVariant {
342 panic(fmt.Sprintf("Unknown ARM architecture version: %q", arch.ArchVariant))
Dx86_device.go197 func x86ToolchainFactory(arch android.Arch) Toolchain {
200 "${config.X86" + arch.ArchVariant + "VariantClangCflags}",
203 for _, feature := range arch.ArchFeatures {
Dx86_64_device.go186 func x86_64ToolchainFactory(arch android.Arch) Toolchain {
189 "${config.X86_64" + arch.ArchVariant + "VariantClangCflags}",
192 for _, feature := range arch.ArchFeatures {
/build/soong/android/
Darch_list.go398 func RegisterDefaultArchVariantFeatures(os OsType, arch ArchType, features ...string) {
402 if !InList(feature, archFeatures[arch]) {
403 panic(fmt.Errorf("Invalid feature %q for arch %q variant \"\"", feature, arch))
410 defaultArchFeatureMap[os][arch] = features
Darch.go772 for _, arch := range archs {
773 if targets[i].Arch.ArchType == arch {
797 arch, multilib, target reflect.Type member
844 for i, arch := range archTypeList {
847 for _, archVariant := range archVariants[arch] {
851 for _, feature := range archFeatures[arch] {
870 Name: arch.Field,
923 arch: reflect.PtrTo(archType),
1003 Arch: reflect.Zero(t.arch).Interface(),
1213 func getArchProperties(ctx BaseMutatorContext, archProperties interface{}, arch Arch, os OsType, na…
[all …]
Dpackaging.go122 func (p *PackagingBase) getDepsForArch(ctx BaseModuleContext, arch ArchType) []string {
124 if arch == ctx.Target().Arch.ArchType && len(ctx.MultiTargets()) == 0 {
126 } else if arch.Multilib == "lib32" {
128 } else if arch.Multilib == "lib64" {
130 } else if arch == Common {
135 if t.Arch.ArchType == arch {
144 switch arch {
/build/soong/cc/
Dsnapshot_utils.go84 func snapshotMapKey(name string, arch android.ArchType) string {
85 return name + ":" + arch.String()
90 func (s *snapshotMap) add(name string, arch android.ArchType, snapshot string) {
91 s.snapshots[snapshotMapKey(name, arch)] = snapshot
96 func (s *snapshotMap) get(name string, arch android.ArchType) (snapshot string, found bool) {
97 snapshot, found = s.snapshots[snapshotMapKey(name, arch)]
Dapi_level.go24 arch android.ArchType) android.ApiLevel {
26 switch arch {
32 panic(fmt.Errorf("Unknown arch %q", arch))
Dbp2build.go245 for arch, props := range module.GetArchProperties(ctx, &BaseCompilerProperties{}) {
251 srcs.SetValueForArch(arch.Name, srcsList)
256 copts.SetValueForArch(arch.Name, parseCopts(baseCompilerProps))
262 for arch, props := range module.GetArchProperties(ctx, &BaseCompilerProperties{}) {
264 …srcs.SetValueForArch(arch.Name, bazel.SubtractBazelLabelList(srcs.GetValueForArch(arch.Name), srcs…
340 for arch, p := range module.GetArchProperties(ctx, &BaseLinkerProperties{}) {
347 deps.SetValueForArch(arch.Name, android.BazelLabelForModuleDeps(ctx, libs))
348 linkopts.SetValueForArch(arch.Name, getBp2BuildLinkerFlags(baseLinkerProps))
349 …wholeArchiveDeps.SetValueForArch(arch.Name, android.BazelLabelForModuleDeps(ctx, wholeArchiveLibs))
352 versionScript.SetValueForArch(arch.Name,
[all …]
/build/blueprint/bpmodify/
Dbpmodify_test.go77 arch: {
94 arch: {
107 arch: {
123 arch: {
136 arch: {
154 arch: {
167 arch: {
200 arch: {},
206 arch: {},
/build/soong/cc/symbolfile/
D__init__.py157 def should_omit_version(version: Version, arch: Arch, api: int, llndk: bool,
177 if not symbol_in_arch(version.tags, arch):
179 if not symbol_in_api(version.tags, arch, api):
184 def should_omit_symbol(symbol: Symbol, arch: Arch, api: int, llndk: bool,
193 if not symbol_in_arch(symbol.tags, arch):
195 if not symbol_in_api(symbol.tags, arch, api):
200 def symbol_in_arch(tags: Iterable[Tag], arch: Arch) -> bool:
204 if tag == arch:
215 def symbol_in_api(tags: Iterable[Tag], arch: Arch, api: int) -> bool:
223 elif tag.startswith('introduced-' + arch + '='):
[all …]
/build/soong/cc/ndkstubgen/
D__init__.py31 def __init__(self, src_file: TextIO, version_script: TextIO, arch: Arch,
35 self.arch = arch
47 if symbolfile.should_omit_version(version, self.arch, self.api,
56 if symbolfile.should_omit_symbol(symbol, self.arch, self.api,
147 args.arch, api, args.llndk,
154 generator = Generator(src_file, version_file, args.arch, api,
/build/soong/sh/
Dsh_binary_test.go119 for _, arch := range arches {
120 variant := ctx.ModuleForTests("foo", arch)
123 if arch == "darwin_x86_64" {
127 expectedInput := "out/soong/.intermediates/libbar/" + arch + "_shared/libbar" + libExt
133 filepath.Join("out/soong/.intermediates/bar", arch, ":bar"),
134 filepath.Join("out/soong/.intermediates/foo", arch, "relocated/:lib64/libbar"+libExt),
/build/soong/bp2build/
Dconfigurability.go21 for arch, selectKey := range bazel.PlatformArchMap {
22 archSelects[selectKey] = reflect.ValueOf(list.GetValueForArch(arch))
39 for arch, selectKey := range bazel.PlatformArchMap {
40 archSelects[selectKey] = reflect.ValueOf(label.GetValueForArch(arch))
56 for arch, selectKey := range bazel.PlatformArchMap {
57 archSelects[selectKey] = reflect.ValueOf(list.GetValueForArch(arch).Includes)
/build/soong/rust/
Dfuzz.go120 arch string member
163 archOs := archOs{hostOrTarget: hostOrTargetString, arch: archString, dir: archDir.String()}
245 arch := archOs.arch
248 outputFile := android.PathForOutput(ctx, "fuzz-rust-"+hostOrTarget+"-"+arch+".zip")
264 builder.Build("create-fuzz-package-"+arch+"-"+hostOrTarget,
265 "Create fuzz target packages for "+arch+"-"+hostOrTarget)

123