From 50de8becd12b8d37d387ea870d280e4a3dea95f6 Mon Sep 17 00:00:00 2001 From: Vinh Tran Date: Thu, 21 Sep 2023 15:28:53 -0400 Subject: Export rust flags to bazel Bug: 290790800 Test: Inspect out/soong/soong_inspection folder after running `m bp2build` Change-Id: Iffc43a540f67e5f07d109a0a87f3248fae035267 --- rust/compiler.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'rust/compiler.go') diff --git a/rust/compiler.go b/rust/compiler.go index 98a61af55..b3f574d57 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -330,14 +330,7 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags) Flag if ctx.Os() == android.Linux { // Add -lc, -lrt, -ldl, -lpthread, -lm and -lgcc_s to glibc builds to match // the default behavior of device builds. - flags.LinkFlags = append(flags.LinkFlags, - "-lc", - "-lrt", - "-ldl", - "-lpthread", - "-lm", - "-lgcc_s", - ) + flags.LinkFlags = append(flags.LinkFlags, config.LinuxHostGlobalLinkFlags...) } else if ctx.Os() == android.Darwin { // Add -lc, -ldl, -lpthread and -lm to glibc darwin builds to match the default // behavior of device builds. -- cgit v1.2.3-59-g8ed1b