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

Impossible to use two differents resources after 1.6.5 #45

Open
poliorcetics opened this issue Apr 21, 2022 · 0 comments
Open

Impossible to use two differents resources after 1.6.5 #45

poliorcetics opened this issue Apr 21, 2022 · 0 comments

Comments

@poliorcetics
Copy link
Contributor

I have two resource files

  • The first is used for tests and is on a library liba
  • The second is used for the production binary and is on the binary prodbin

The tests are in several libraries depending on liba

So I have something like:

liba (RESOURCE)
| - test1
| - test2
| - test3
+- probbin (RESOURCE)

Previously I could simply compile and due to the define order, it worked (I have a CI test for it): prodbin had its resources and everything else inherited liba's resources

I tried some fixes on my side in terms of file name and such, but nothing worked so I cannot updated to the new version 1.7.2. Using compile_for didn't work either.

Trying to detect to only build liba's resources when testing doesn't work because liba has no idea what it is built for (cargo does not give such information, to avoid dependencies affecting their build output based on the end product in hidden ways)

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