Skip to content

Commit

Permalink
pw_rust: Enable GN pw_rust targets for linux host
Browse files Browse the repository at this point in the history
- Having GN rust build checked in CQ.
- Fix a issue in bindgen

Change-Id: I6c313dd95c3c83028f3555be2da075feb0428a3f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/254372
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Jiacheng Lu <lujc@google.com>
Reviewed-by: Erik Gilling <konkers@google.com>
Docs-Not-Needed: Jiacheng Lu <lujc@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
  • Loading branch information
Jason0214 authored and CQ Bot Account committed Dec 14, 2024
1 parent d8ad5c6 commit bb58b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pw_build/rust_bindgen_action.gni
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ template("rust_bindgen_action") {
program = _bindgen_exe_path
header = rebase_path(invoker.header, root_build_dir)

if (invoker.libclang_path) {
if (defined(invoker.libclang_path)) {
# Note `-isysroot` may not work properly when `LIBCLANG_PATH` is set.
env = [ "LIBCLANG_PATH=" + invoker.libclang_path ]
}
Expand Down
1 change: 1 addition & 0 deletions targets/host/target_toolchains.gni
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ _linux_config = {
pw_bloat_BLOATY_CONFIG = get_path_info("linux.bloaty", "abspath")
pw_unit_test_AUTOMATIC_RUNNER = get_path_info("run_test", "abspath")
pw_async2_DISPATCHER_BACKEND = "$dir_pw_async2_epoll:dispatcher_backend"
pw_rust_ENABLE_EXPERIMENTAL_BUILD = true
}

# macOS-specific target configuration.
Expand Down

0 comments on commit bb58b65

Please sign in to comment.