Lines Matching refs:arch
15 parser.add_argument('--target-arch', nargs=1,
119 def triplet_lookup(arch):
120 if arch == "x86_gcc2":
122 elif arch == "x86":
124 elif arch == "x86_64":
126 elif arch == "ppc":
128 elif arch == "m68k":
130 elif arch == "arm":
132 elif arch == "riscv64":
135 berror("Unsupported target architecture: " + arch)
178 def setup_target_compiler(arch):
180 triplet = triplet_lookup(arch)
181 set_build_config("HAIKU_GCC_RAW_VERSION_" + arch, cmdrun([cc, "-dumpversion"]).strip())
182 set_build_config("HAIKU_GCC_MACHINE_" + arch, triplet)
183 set_build_config("HAIKU_CPU_" + arch, arch)
185 set_build_config("HAIKU_CC_" + arch, "clang -target " + triplet + " -B llvm-")
187 def build_gcc_toolchain(buildtools_dir, arch):
188 bok(arch + " toolchain build complete!")
202 berror("You need to specify at least one target architecture via --target-arch")
232 for arch in args["target_arch"]:
233 binfo("Configuring " + arch[0] + " architecture...")
234 setup_target_compiler(arch[0])
237 build_gcc_toolchain(args["build_gcc_toolchain"][0], arch[0])