Revert "Add -nostdlibinc to bindgen's device cflags."
This reverts commit 19f7b285efb389d79a1ecf688971765ebb5605e0.
Reason for revert: b/374513613
Bug: 374513613
Bug: 374130155
Change-Id: I90fae0d24d0076a5626607f088434b473b7b6b27
diff --git a/rust/bindgen.go b/rust/bindgen.go
index 3944495..abb5181 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -186,7 +186,7 @@
// 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