diff options
author | 2023-09-21 15:28:53 -0400 | |
---|---|---|
committer | 2023-10-04 13:14:32 -0400 | |
commit | 50de8becd12b8d37d387ea870d280e4a3dea95f6 (patch) | |
tree | 9e74aa6c35a06c3925e4d745481708e4e3093e2b /rust/compiler.go | |
parent | c68afc4e9ff381074b059767ccd279a0f36b4b36 (diff) |
Export rust flags to bazel
Bug: 290790800
Test: Inspect out/soong/soong_inspection folder after running `m bp2build`
Change-Id: Iffc43a540f67e5f07d109a0a87f3248fae035267
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 9 |
1 files changed, 1 insertions, 8 deletions
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. |