Skip to content

[native_assets_builder] Link hooks output directory with different entry points #1956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dcharkes opened this issue Jan 30, 2025 · 1 comment

Comments

@dcharkes
Copy link
Collaborator

Once we add support for tree-shaking (#153), it's possible that a user compiles for two different entry points.

In such case, we should share the build hook outputs, but the link hook outputs should not share their output directory.

In the following scenario we'd like the 3rd build to cache the link hooks:

  1. dart build bin/entry1.dart (runs build hooks, and link hooks)
  2. dart build bin/entry2.dart (runs link hooks)
  3. dart build bin/entry1.dart (uses the cached link hook result from invocation 1.)
@dcharkes
Copy link
Collaborator Author

(Somewhat related to #39 (comment), which is also about not wanting unrelated invocations unintentionally invalidating the cache.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant