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

Generated file paths in Tuprules in a variant build #509

Open
ffreling opened this issue Nov 20, 2024 · 0 comments
Open

Generated file paths in Tuprules in a variant build #509

ffreling opened this issue Nov 20, 2024 · 0 comments

Comments

@ffreling
Copy link

In Tuprules, you can create rules that will be evaluated in another directory with a Tupfile.
You can however reference files related to the Tuprules:

&root = .
!custom_rule = |> bin %f %o --extra-conf=&(root)/sample.conf |>

However, if you rely on a generated file in a rule, it is impossible (as far as I can tell) to reference this file in a rule.
Would it be possible to have an equivalent to &-variable for generated files? A way to specify an absolute path in a variant build.

I added a simple test case in this repository: https://code.ffreling.com/fabs/tup-recipes/src/branch/master/variant_path

Thanks.

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