• Home
  • Raw
  • Download

Lines Matching refs:flags

96 func TransformSrcToBinary(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags,
98 flags.GlobalRustFlags = append(flags.GlobalRustFlags, "-C lto")
100 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "bin")
103 func TransformSrctoRlib(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags,
105 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "rlib")
108 func TransformSrctoDylib(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags,
110 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "dylib")
113 func TransformSrctoStatic(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags,
115 flags.GlobalRustFlags = append(flags.GlobalRustFlags, "-C lto")
116 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "staticlib")
119 func TransformSrctoShared(ctx ModuleContext, mainSrc android.Path, deps PathDeps, flags Flags,
121 flags.GlobalRustFlags = append(flags.GlobalRustFlags, "-C lto")
122 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "cdylib")
126 flags Flags, outputFile android.WritablePath) buildOutput {
127 return transformSrctoCrate(ctx, mainSrc, deps, flags, outputFile, "proc-macro")
187 func transformSrctoCrate(ctx ModuleContext, main android.Path, deps PathDeps, flags Flags,
205 rustcFlags = append(rustcFlags, flags.GlobalRustFlags...)
206 rustcFlags = append(rustcFlags, flags.RustFlags...)
220 linkFlags = append(linkFlags, flags.GlobalLinkFlags...)
221 linkFlags = append(linkFlags, flags.LinkFlags...)
263 if flags.Clippy {
275 "clippyFlags": strings.Join(flags.ClippyFlags, " "),
304 flags Flags) android.ModuleOutPath {
306 rustdocFlags := append([]string{}, flags.RustdocFlags...)