Skip to content

Conversation

@chouquette
Copy link

This is needed when a Makefile target depends on a rule with an absolute path located in the prefix.

Since the prefix will contain a :, this causes syntax errors in the generated Makefiles

@chouquette chouquette requested a review from a team as a code owner November 8, 2024 07:47
prefix = options.delete(:prefix) || "#{install_dir}/embedded"

if windows_target?
prefix.sub! "C:/", "/c/"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Question :
Looks good but to confirm in which way is it replacing ? since I'd expect C:/ path to be the standard on windows and /c/ not working

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed that only work when running the build under msys or similar, definitely not in powershell...
That should be fine since I'm pretty sure autoconf will not work anyway, but I'll double check with the windows team

@chouquette
Copy link
Author

This is actually a leftover from a previous experiment and isn't required anymore. Sorry about this 🤦

@chouquette chouquette closed this Dec 12, 2024
@chouquette chouquette deleted the chouquette/windows_build branch December 12, 2024 15:32
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

Successfully merging this pull request may close these issues.

3 participants