[roll] Roll fuchsia [build] Make bindgen script more generic and configurable
Make the bindgen script useful for more targets, specifically C++
code that uses the standard library.
* Move from //src/starnix/lib to //build/rust, as it's not really
Starnix-specific.
* Expose more bindgen flags as configuration properties:
* `--blocklist-{function,var,type}`
* `--no-default`
* `--use-core`
* Clang: `-nostdlibinc`
* Do not define `__Fuchsia_API_level__` by default, as that causes
a duplicate define with building with C++ stdlib includes.
* Use RUSTFMT env var instead of PATH to point bindgen to rustfmt.
* Set default Clang target to `x86_64-unknown-linux-gnu` that can
build with C++ standard library includes. Note that bindgen uses
Clang from the host, not from the Fuchsia toolchain.
* Add documentation for flags.
Original-Bug: b/344007647
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1059203
Original-Revision: a3614aa2549e9cbe2ff8bdd04606b2587125fdbe
GitOrigin-RevId: 736a4a95855b9b39bbe5642d01ddea1ad98a18d9
Change-Id: Ib64e0312071d513e208b2d91cbf1e5813baf9734
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.