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

Test that we can link twice on the same linker with GCC #4924

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

gzm0
Copy link
Contributor

@gzm0 gzm0 commented Jan 2, 2024

Ensures that we catch issues like this:
#4917 (comment)

for {
lib <- TestIRRepo.minilib
_ <- linker.link(lib ++ classDefs, moduleInitializers, output, logger)
_ <- linker.link(lib ++ classDefs, moduleInitializers, output, logger)
Copy link
Member

Choose a reason for hiding this comment

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

We probably want to change something in between the two runs. Perhaps the text within the consoleLog. Otherwise we might have a global shortcut that avoids doing any work at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Updated.

(I have also avoided the additional list for classDefs, seemed simpler).

@sjrd sjrd merged commit 188b945 into scala-js:main Jan 3, 2024
3 checks passed
@gzm0 gzm0 deleted the gcc-test branch January 7, 2024 09:21
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.

None yet

2 participants