Skip to content

Conversation

@Lazauya
Copy link
Contributor

@Lazauya Lazauya commented Nov 14, 2024

A simple implementation for static library building. It functions nearly identically to executable building, except that we look for files named lib.cc (or the other acceptable C++ extensions) and resolved the dependencies for that file. Instead of linking everything into an executable at the end, we instead use ar to build an object archive called lib<package-name>.a.

@Lazauya Lazauya marked this pull request as ready for review November 14, 2024 04:29
@ken-matsui
Copy link
Member

Please fix CI errors.

@Lazauya
Copy link
Contributor Author

Lazauya commented Nov 15, 2024

Please fix CI errors.

Working on it! I think I know what the issue is, luckily.

@ken-matsui
Copy link
Member

Please fix CI errors.

Working on it! I think I know what the issue is, luckily.

Great, thanks!

@ken-matsui
Copy link
Member

ken-matsui commented Nov 16, 2024

Please fix conflicts. (Note: this was merged)

Copy link
Member

@ken-matsui ken-matsui left a comment

Choose a reason for hiding this comment

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

Almost LG. Let's address some small things. Thanks!

@ken-matsui ken-matsui changed the title Library building build: support lib.cc Nov 16, 2024
Copy link
Member

@ken-matsui ken-matsui left a comment

Choose a reason for hiding this comment

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

I have more comments but don't have enough time. Let me do that later. Here's what I have so far.

@ken-matsui
Copy link
Member

Please fix conflicts, thank you

Copy link
Member

@ken-matsui ken-matsui left a comment

Choose a reason for hiding this comment

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

Sorry for taking long to review!

Copy link
Member

@ken-matsui ken-matsui left a comment

Choose a reason for hiding this comment

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

Sorry for the late review. Just small performance tweaks, and then LG. Thanks!

@ken-matsui ken-matsui merged commit 2e0da2c into cabinpkg:main Dec 16, 2024
18 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