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 crossgen2 arguments #4342

Merged
merged 2 commits into from
Nov 25, 2022
Merged

Fix crossgen2 arguments #4342

merged 2 commits into from
Nov 25, 2022

Conversation

hez2010
Copy link
Contributor

@hez2010 hez2010 commented Nov 25, 2022

We need to pass the directory instead of files as the input to -r

/cc: @mattgodbolt

We passed files other than dlls in `-r`.
@hez2010 hez2010 marked this pull request as draft November 25, 2022 21:13
@hez2010 hez2010 marked this pull request as ready for review November 25, 2022 21:26
@hez2010
Copy link
Contributor Author

hez2010 commented Nov 25, 2022

@mattgodbolt Now it works as expected.

image

@@ -180,7 +180,7 @@ class DotNetCompiler extends BaseCompiler {
const crossgen2Options = [
crossgen2Path,
'-r',
path.join(bclPath, '*'),
path.join(bclPath, '/'),
Copy link
Member

Choose a reason for hiding this comment

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

Why join with / ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need a tailing / here.

@mattgodbolt mattgodbolt merged commit 0961116 into compiler-explorer:main Nov 25, 2022
mattgodbolt pushed a commit that referenced this pull request Dec 20, 2022
* Fix crossgen2 arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants