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

Improve module objectfiles handling and moduleonly package #5376

Merged
merged 16 commits into from
Jul 25, 2024

Conversation

Arthapz
Copy link
Member

@Arthapz Arthapz commented Jul 22, 2024

this patch improve modules support by
- ensuring that static / dynamic libraries public module objectfiles are beeing packed in the library
- improving module culling so no std or std.compat module should be built if they are not imported
- showing a warning when modules that are not std or std.compat are culled
- raising an error when duplicated module name are detecteds

@Arthapz
Copy link
Member Author

Arthapz commented Jul 22, 2024

need #5375

@Arthapz Arthapz force-pushed the fix-module-objectfiles-handling branch from 815638e to df5cb9c Compare July 23, 2024 21:26
@Arthapz Arthapz mentioned this pull request Jul 24, 2024
@Arthapz Arthapz marked this pull request as ready for review July 24, 2024 00:30
@Arthapz Arthapz force-pushed the fix-module-objectfiles-handling branch from 94d3e2b to 14f95cb Compare July 24, 2024 00:42
@Arthapz Arthapz changed the title Fix module objectfiles handling Improve module objectfiles handling and moduleonly package Jul 24, 2024
@Arthapz Arthapz force-pushed the fix-module-objectfiles-handling branch 2 times, most recently from 1f9944e to a70ab06 Compare July 24, 2024 01:55
@Arthapz Arthapz force-pushed the fix-module-objectfiles-handling branch from a70ab06 to 4f359b2 Compare July 24, 2024 02:01
@Arthapz
Copy link
Member Author

Arthapz commented Jul 24, 2024

#5240 will no longer be necessary as this test is included in this PR

@waruqi
Copy link
Member

waruqi commented Jul 24, 2024

#5240 will no longer be necessary as this test is included in this PR

I will close it when this patch is merged.

os.iorun("xmake -r")
end
end, catch {function(errors)
errors = errors.errors
Copy link
Member

Choose a reason for hiding this comment

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

errors = tostring(errors)

@waruqi waruqi closed this Jul 25, 2024
@waruqi waruqi reopened this Jul 25, 2024
@waruqi waruqi added this to the v2.9.4 milestone Jul 25, 2024
@waruqi waruqi merged commit deef593 into xmake-io:dev Jul 25, 2024
19 of 38 checks passed
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.

2 participants