Skip to content
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

build a rule to generate the intra-target source deps #8

Open
johnynek opened this issue Feb 24, 2016 · 1 comment
Open

build a rule to generate the intra-target source deps #8

johnynek opened this issue Feb 24, 2016 · 1 comment

Comments

@johnynek
Copy link
Member

Zinc:
https://github.com/typesafehub/zinc

could analyze sources and output the dependency graph of the files in a target. This could be helpful to output a set of targets that are smaller so the bazel's built in incrementalism is more effective.

so, you could have something like this:

scala_file_dependencies(name = "foo", target = "mylibrary")

and this could generate a new BUILD as output that has each file as a target with the correct dependencies.

This seems suboptimal for usability, but given bazel's model of compilation as a pure function from source to output artifact, this might part of a practical solution for making faster builds.

@johnynek
Copy link
Member Author

this was done in #892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant