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

Delete some unused cmake defines #103441

Merged
merged 2 commits into from
Jun 16, 2024
Merged

Conversation

am11
Copy link
Member

@am11 am11 commented Jun 13, 2024

Found with:

git grep cmakedefine ':/*.in' | while read x y z; do echo $y; done | sort -u |\
    while read x; do if ! git grep -q "$x" ':!*in' ':!*cmake'; then echo "$x";fi;done

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jun 13, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@@ -234,12 +234,9 @@ if(HOST_WIN32)
# Dynamic lookup using ac_check_headers/ac_check_functions is extremly slow on Windows, espacially on msbuild.
# Since majority of the checks above will fail on Windows host, we can just directly define the available static
# API surface.
set(HAVE_ATEXIT 1)
Copy link
Member

Choose a reason for hiding this comment

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

I think we need this and perhaps the others. Is that correct, @lateralusX ?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are unused. When we need them lets add them then.

Copy link
Member

Choose a reason for hiding this comment

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

In dotnet/runtime perhaps, but they may be used in forks. If that's the case, I'd rather keep it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you point me to the fork you are referring to? The dead code is deleted in this repo. If fork is using it, it should be kept there.

Copy link
Member

Choose a reason for hiding this comment

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

It's non-public, unfortunately. I want to make sure it's even used there first. If it's not, then my comment is moot.

Copy link
Member

@lateralusX lateralusX Jun 14, 2024

Choose a reason for hiding this comment

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

Not used so should be fine dropping and if ever needed in future we add it downstream.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

src/mono/cmake/config.h.in Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants