summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-10-21 01:13:09 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-10-21 01:13:09 +0000
commit7085d357829c65dac1a792f8a95698e4be271d49 (patch)
tree82b3db076678dc12ca009def775545b611fc9c9e
parentc96becf275bc9f075be92fd3d087f56a68837e33 (diff)
parent35bd00a3bbfea72cf8a4f1cb2cab53d8b8256f8f (diff)
Merge "Revert "Add -nostdlibinc to bindgen's device cflags."" into main
-rw-r--r--rust/bindgen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go
index 394449574..abb51814e 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -186,7 +186,7 @@ func (b *bindgenDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) andr
// Default clang flags
cflags = append(cflags, "${cc_config.CommonGlobalCflags}")
if ctx.Device() {
- cflags = append(cflags, "${cc_config.DeviceGlobalCflags}", "-nostdlibinc")
+ cflags = append(cflags, "${cc_config.DeviceGlobalCflags}")
}
// Toolchain clang flags