Home
last modified time | relevance | path

Searched refs:toolchain (Results 1 – 25 of 36) sorted by relevance

12

/build/soong/cc/
Dmakevars.go192 toolchain := config.FindToolchain(target.Os, target.Arch)
206 includeFlags, err := ctx.Eval(toolchain.IncludeFlags())
215 flags, err := toolchain.ClangInstructionSetFlags("arm")
221 flags, err = toolchain.ClangInstructionSetFlags("thumb")
229 clangExtras := "-B" + config.ToolPath(toolchain)
231 ctx.Strict(clangPrefix+"TRIPLE", toolchain.ClangTriple())
233 toolchain.ClangCflags(),
236 toolchain.ToolchainClangCflags(),
243 toolchain.ClangCppflags(),
247 toolchain.ClangLdflags(),
[all …]
Dndk_prebuilt.go37 func getNdkLibDir(ctx android.ModuleContext, toolchain config.Toolchain, version string) android.So…
41 if toolchain.Is64Bit() && ctx.Arch().ArchType != android.Arm64 {
45 version, toolchain.Name(), suffix))
48 func ndkPrebuiltModuleToPath(ctx android.ModuleContext, toolchain config.Toolchain,
54 dir := getNdkLibDir(ctx, toolchain, version)
Dstl.go178 if ctx.toolchain().Bionic() {
187 if ctx.toolchain().Bionic() && ctx.Module().Name() == "libc++" {
227 if !ctx.toolchain().Bionic() {
252 if !ctx.toolchain().Bionic() {
Dlinker.go239 if ctx.toolchain().Is64Bit() {
341 if ctx.toolchain().Bionic() {
344 deps.LateStaticLibs = append(deps.LateStaticLibs, config.BuiltinsRuntimeLibrary(ctx.toolchain()))
430 toolchain := ctx.toolchain()
469 flags.Global.LdFlags = append(flags.Global.LdFlags, toolchain.ClangLldflags())
471 flags.Global.LdFlags = append(flags.Global.LdFlags, toolchain.ClangLdflags())
474 if !ctx.toolchain().Bionic() && !ctx.Fuchsia() {
497 if ctx.toolchain().LibclangRuntimeLibraryArch() != "" {
498 …nd(flags.Global.LdFlags, "-Wl,--exclude-libs="+config.BuiltinsRuntimeLibrary(ctx.toolchain())+".a")
525 flags.Global.LdFlags = append(flags.Global.LdFlags, toolchain.ToolchainClangLdflags())
Dsanitize.go467 if !ctx.toolchain().Is64Bit() {
543 minimalRuntimeLib := config.UndefinedBehaviorSanitizerMinimalRuntimeLibrary(ctx.toolchain()) + ".a"
545 builtinsRuntimeLib := config.BuiltinsRuntimeLibrary(ctx.toolchain()) + ".a"
672 if !ctx.toolchain().Bionic() {
681 if !ctx.toolchain().Bionic() {
1120 toolchain := c.toolchain(mctx)
1122 runtimeLibrary = config.AddressSanitizerRuntimeLibrary(toolchain)
1125 runtimeLibrary = config.HWAddressSanitizerStaticLibrary(toolchain)
1128 runtimeLibrary = config.HWAddressSanitizerRuntimeLibrary(toolchain)
1131 runtimeLibrary = config.ThreadSanitizerRuntimeLibrary(toolchain)
[all …]
Dbinary.go149 if ctx.toolchain().Bionic() {
223 if !ctx.toolchain().Bionic() {
269 if ctx.toolchain().Bionic() {
356 } else if ctx.toolchain().Bionic() && !binary.static() {
443 symlink+String(binary.Properties.Suffix)+ctx.toolchain().ExecutableSuffix())
Dinstaller.go66 if ctx.toolchain().Is64Bit() && installer.dir64 != "" {
Dbuilder.go375 toolchain config.Toolchain member
537 "windresCmd": gccCmd(flags.toolchain, "windres"),
538 "flags": flags.toolchain.WindresFlags(),
1072 func gccCmd(toolchain config.Toolchain, cmd string) string {
1073 return filepath.Join(toolchain.GccRoot(), "bin", toolchain.GccTriple()+"-"+cmd)
Dcheck.go107 allowedLdlibs := ctx.toolchain().AvailableLibraries()
/build/bazel/rules_cc/cc/
Dfind_cc_toolchain.bzl20 C++ toolchain is selected using the legacy mechanism (`--crosstool_top`,
36 C++ toolchain is selected using the toolchain resolution mechanism
38 C++ toolchain type:
47 We advise to depend on both `_cc_toolchain` attr and on the toolchain type for
50 Bazel version is not needed), it's enough to only keep the toolchain type.
58 ctx: The rule context for which to find a toolchain.
64 # Check the incompatible flag for toolchain resolution.
67 …fail("In order to use find_cc_toolchain, your rule has to depend on C++ toolchain. See find_cc_too…
78 …fail("In order to use find_cc_toolchain, your rule has to depend on C++ toolchain. See find_cc_too…
/build/soong/rust/
Dcompiler.go248 flags.GlobalRustFlags = append(flags.GlobalRustFlags, ctx.toolchain().ToolchainRustFlags())
249 flags.GlobalLinkFlags = append(flags.GlobalLinkFlags, ctx.toolchain().ToolchainLinkFlags())
258 if ctx.toolchain().Is64Bit() {
313 stdlib = stdlib + "_" + ctx.toolchain().RustTriple()
334 if libRuntimeBuiltins := config.BuiltinsRuntimeLibrary(ctx.toolchain()); libRuntimeBuiltins != "" {
351 if ctx.toolchain().Is64Bit() && compiler.dir64 != "" {
Drust.go691 toolchain() config.Toolchain methodSpec
710 func (ctx *moduleContext) toolchain() config.Toolchain { func
711 return ctx.RustModule().toolchain(ctx)
718 func (ctx *depsContext) toolchain() config.Toolchain { func
719 return ctx.RustModule().toolchain(ctx)
726 func (ctx *baseModuleContext) toolchain() config.Toolchain { func
727 return ctx.RustModule().toolchain(ctx)
744 func (mod *Module) toolchain(ctx android.BaseModuleContext) config.Toolchain { func
768 toolchain := mod.toolchain(ctx)
778 if !toolchain.Supported() {
[all …]
Dsanitize.go145 deps = []string{config.LibclangRuntimeLibrary(mod.toolchain(mctx), "asan")}
159 deps = []string{config.LibclangRuntimeLibrary(mod.toolchain(mctx), "hwasan_static")}
164 deps = []string{config.LibclangRuntimeLibrary(mod.toolchain(mctx), "hwasan")}
Dproc_macro.go67 fileName := procMacro.getStem(ctx) + ctx.toolchain().ProcMacroSuffix()
Dlibrary.go406 if ctx.toolchain().Bionic() && (library.dylib() || library.shared()) {
416 return library.getStem(ctx) + ctx.toolchain().SharedLibSuffix()
453 fileName = library.getStem(ctx) + ctx.toolchain().RlibSuffix()
458 fileName = library.getStem(ctx) + ctx.toolchain().DylibSuffix()
463 fileName = library.getStem(ctx) + ctx.toolchain().StaticLibSuffix()
Dbuilder.go198 targetTriple := ctx.toolchain().RustTriple()
313 targetTriple := ctx.toolchain().RustTriple()
/build/soong/cc/config/
Dtoolchain.go119 func NDKTriple(toolchain Toolchain) string {
120 triple := toolchain.ndkTriple()
123 triple = toolchain.ClangTriple()
DAndroid.bp17 "toolchain.go",
/build/soong/rust/config/
DAndroid.bp17 "toolchain.go",
/build/bazel/
Dcommon.bazelrc6 # # Use toolchain resolution to find the cc toolchain.
29 # Disable local cpp toolchain detection, as it is explicitly declared in AOSP.
/build/bazel/platforms/arch/
DBUILD23 # Alias to the local_jdk's toolchain constraint to make local_jdk resolve
/build/bazel/platforms/os/
DBUILD13 # Alias to the local_jdk's toolchain constraint to make local_jdk resolve
/build/bazel/rules/
Dstatic_libc.bzl1 # Rules and macros to define a cc toolchain with a static libc.
Dcc_object.bzl100 default = Label("@local_config_cc//:toolchain"),
/build/soong/
DAndroid.bp46 // C static libraries extracted from the gcc toolchain

12