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 Alpine build break #101302

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Conversation

lambdageek
Copy link
Member

Apline defines NULL as std::nullptr which is not comparable/assignable with intptr_t

Fixes dotnet/source-build#4345

Apline defines NULL as std::nullptr which is not comparable/assignable
with intptr_t

Fixes dotnet/source-build#4345
Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

@lambdageek lambdageek added the source-build Issues relating to dotnet/source-build label Apr 19, 2024
@elinor-fung elinor-fung merged commit 907eff8 into dotnet:main Apr 19, 2024
90 checks passed
@@ -48,7 +48,7 @@ CDAC::CDAC(HMODULE module, uint64_t descriptorAddr, ICorDebugDataTarget* target)
{
if (m_module == NULL)
{
m_cdac_handle = NULL;
m_cdac_handle = 0;
Copy link
Member

Choose a reason for hiding this comment

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

looks like the approach in #100796 was to cast NULL to INT_PTR instead

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's a style preference. in this case m_cdac_handle isn't a pointer (it happens to be a NativeAOT GCHandle), so (INT_PTR)NULL isn't really apropriate, either.

matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
Apline defines NULL as std::nullptr which is not comparable/assignable
with intptr_t

Fixes dotnet/source-build#4345
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Diagnostics-coreclr source-build Issues relating to dotnet/source-build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All Alpine319 legs are failed to build CoreCLR component
3 participants