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

Use getexepath in mono to deduplicate related code #60449

Merged
merged 3 commits into from
Oct 21, 2021

Conversation

am11
Copy link
Member

@am11 am11 commented Oct 15, 2021

Sequel of #44999.

Windows and Wasm cases are new in src/native/common/getexepath.h for Mono.

Also, the linkage specifier had to be static instead of extern; to avoid duplicate symbol errors. Previously we had only one C usage in libs.native, but since mono is calling this function from two places, linker was throwing duplicate symbol error (at the very end of build).

Second commit is for trailing whitespace cleanup of modified files in the first one (my editor highlights those places quite noticeably, so I "fixed" it 🙂).

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Oct 15, 2021
@am11 am11 force-pushed the feature/native/consolidations branch from 4673d69 to d2ccc2d Compare October 15, 2021 02:56
@am11 am11 marked this pull request as ready for review October 15, 2021 02:56
@am11
Copy link
Member Author

am11 commented Oct 15, 2021

cc @jkotas

Copy link
Member

@lambdageek lambdageek left a comment

Choose a reason for hiding this comment

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

Love it! Mono bits LGTM

@am11
Copy link
Member Author

am11 commented Oct 15, 2021

Failures in last commit are unrelated: wasm: #47968, windows: #60427 and linux arm64 encountered some infra issue.

@am11
Copy link
Member Author

am11 commented Oct 21, 2021

@lambdageek, if it looks good, can this be merged?

@lambdageek lambdageek merged commit c88c88a into dotnet:main Oct 21, 2021
@am11 am11 deleted the feature/native/consolidations branch October 21, 2021 20:37
@ghost ghost locked as resolved and limited conversation to collaborators Nov 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Build-mono 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.

5 participants