Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae4898e3 authored by Cole Faust's avatar Cole Faust Committed by Automerger Merge Worker
Browse files

Add llvm-objcopy to android_sdk_repo_host's implicit tools am: df34caf8

parents 4b971d70 df34caf8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -165,10 +165,11 @@ func (s *sdkRepoHost) GenerateAndroidBuildActions(ctx android.ModuleContext) {
				Flag(dir.Join(ctx, strip).String())
		}
	} else {
		llvmObjCopy := config.ClangPath(ctx, "bin/llvm-objcopy")
		llvmStrip := config.ClangPath(ctx, "bin/llvm-strip")
		llvmLib := config.ClangPath(ctx, "lib/x86_64-unknown-linux-gnu/libc++.so")
		for _, strip := range s.properties.Strip_files {
			cmd := builder.Command().Tool(llvmStrip).ImplicitTool(llvmLib)
			cmd := builder.Command().Tool(llvmStrip).ImplicitTool(llvmLib).ImplicitTool(llvmObjCopy)
			if !ctx.Windows() {
				cmd.Flag("-x")
			}