Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Conversation

@akbiggs
Copy link
Contributor

@akbiggs akbiggs commented Jan 11, 2022

The ZX FIDL library is special. Unlike regular FIDL libraries
which define IPC, they define the interface between
Zircon kernel and Fuchsia userspace. fidlgen
doesn't produce useful output when dealing with this
library. See fxb/90838.

We're seeing a conflict between zx_rights_t from
the SDK and zx_rights_t from ZX's FIDL bindings. To
fix this, we apply a similar change to https://fuchsia-review.googlesource.com/c/fuchsia/+/623061/13/scripts/sdk/gn/base/build/fidl_library.gni#192.

The ZX FIDL library is special. Unlike regular FIDL libraries
which define IPC, they define the interface between
Zircon kernel and Fuchsia userspace. fidlgen
doesn't produce useful output when dealing with this
library. See fxb/90838.

We're seeing a conflict between zx_rights_t from
the SDK and zx_rights_t from ZX's FIDL bindings. To
fix this, we apply a similar change to https://fuchsia-review.googlesource.com/c/fuchsia/+/623061/13/scripts/sdk/gn/base/build/fidl_library.gni#192.
Copy link
Contributor

@arbreng arbreng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, too bad we need this special casing....that is very non-obvious

outputs = [
"$target_gen_dir/$library_name_slashes/cpp/fidl.h",
"$target_gen_dir/$library_name_slashes/cpp/fidl.cc",
"$target_gen_dir/$library_name_slashes/cpp/tables.c",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you still want to include tables.c for this library?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akbiggs akbiggs merged commit 3497b9d into flutter:master Jan 11, 2022
@akbiggs akbiggs deleted the fix-fuchsia-build branch January 11, 2022 07:14
chandarrengoog added a commit to chandarrengoog/buildroot that referenced this pull request Jan 13, 2022
This is necessary to avoid name collisions.

See flutter#542.
chandarrengoog added a commit to chandarrengoog/buildroot that referenced this pull request Jan 13, 2022
This is necessary to avoid name collisions.

See flutter#542.
chandarrengoog added a commit that referenced this pull request Jan 13, 2022
This is necessary to avoid name collisions.

See #542.
chandarrengoog added a commit that referenced this pull request Jan 13, 2022
This is necessary to avoid name collisions.

See #542.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants