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

Platform filters may have a surprising behavior when cross compiling using --arch #2831

Open
MrcSnm opened this issue Jan 25, 2024 · 0 comments

Comments

@MrcSnm
Copy link
Contributor

MrcSnm commented Jan 25, 2024

System information

  • dub version: 1.35.1
  • OS Platform and distribution: Windows
  • compiler version Any

Bug Description

This is related to how dub --arch works.

Think about how libs-windows works. They are not libraries to be included when your host OS is windows, but when your target is.
This is an okay behavior when you're cross compiling, but it also generates a problem:

postBuildCommands, preGenerateCommands and other from commands family, since you're cross compiling, they should use the HOST as filter instead of target. This is important since when you're running on Windows, you won't magically get access to posix like commands.

How to reproduce?

Expected Behavior

commands family configuration should use host as platform filter instead of arch.

Logs

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