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

fix: use non-deprecated unlink function on windows #1311

Merged
merged 2 commits into from
Sep 16, 2021

Conversation

hellerve
Copy link
Member

This PR fixes our unlink varieties on Windows by using the non-deprecated _unlink function instead of unlink.

Cheers

@hellerve
Copy link
Member Author

This fixes the problem, but there is a followup issue with the address sanitizer on Windows. I don’t think I’ll be able to debug this; I don’t currently have access to a Windows machine.

@TimDeve
Copy link
Contributor

TimDeve commented Sep 14, 2021

The ASAN error is definitely an odd one, I've found a few similar errors online but nothing concrete, I'm wondering if this is related to that specific build/packaging of llvm. I'll try a Windows build on my local machine.

@eriksvedang
Copy link
Collaborator

The ASAN error is definitely an odd one, I've found a few similar errors online but nothing concrete, I'm wondering if this is related to that specific build/packaging of llvm. I'll try a Windows build on my local machine.

Yes, please – this is really strange. I'll hold off mergeing until we know a bit more.

@TimDeve
Copy link
Contributor

TimDeve commented Sep 14, 2021

It is kinda weird that we're seeing some changes here given that we're using the same llvm version in the last passing Windows build and this one. Maybe a change in the underlying Windows image if the problems come from the system headers?

@TimDeve
Copy link
Contributor

TimDeve commented Sep 14, 2021

I think it's still fine to merge this as the deprecation and the Address Sanitizer issues seem separate. See #1314.

Copy link
Collaborator

@eriksvedang eriksvedang left a comment

Choose a reason for hiding this comment

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

Very nice!

core/IO.carp Outdated Show resolved Hide resolved
@eriksvedang eriksvedang merged commit 5a449b0 into carp-lang:master Sep 16, 2021
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