Skip to content

refactor: decouple OutputKind from Args#1293

Merged
mati865 merged 11 commits into
wild-linker:mainfrom
mati865:push-znwvrzlllwtu
Nov 18, 2025
Merged

refactor: decouple OutputKind from Args#1293
mati865 merged 11 commits into
wild-linker:mainfrom
mati865:push-znwvrzlllwtu

Conversation

@mati865
Copy link
Copy Markdown
Member

@mati865 mati865 commented Nov 11, 2025

No description provided.

Comment thread libwild/src/args.rs Outdated
Comment thread libwild/src/symbol_db.rs
@mati865 mati865 marked this pull request as ready for review November 17, 2025 18:03
Copy link
Copy Markdown
Member

@davidlattimore davidlattimore left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment thread libwild/src/args.rs Outdated
Comment thread libwild/src/args.rs Outdated
Comment thread libwild/src/symbol_db.rs
Comment thread libwild/src/args.rs Outdated
pub(crate) is_dynamic_executable: AtomicBool,
relocation_model: RelocationModel,
pub(crate) relocation_model: RelocationModel,
pub(crate) outputting_executable: bool,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This field could use a better name, but I haven't got anything fitting.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps is_output_executable or should_output_executable. Another option would be to make this an enum. The only trouble is that the obvious name for such an enum is... OutputKind, which would mean we'd need a new name for the other OutputKind. Or maybe this one could be OutputClass.

Comment thread libwild/src/args.rs Outdated
pub(crate) is_dynamic_executable: AtomicBool,
relocation_model: RelocationModel,
pub(crate) relocation_model: RelocationModel,
pub(crate) outputting_executable: bool,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps is_output_executable or should_output_executable. Another option would be to make this an enum. The only trouble is that the obvious name for such an enum is... OutputKind, which would mean we'd need a new name for the other OutputKind. Or maybe this one could be OutputClass.

@mati865 mati865 merged commit 7ef64ed into wild-linker:main Nov 18, 2025
20 checks passed
@mati865 mati865 deleted the push-znwvrzlllwtu branch November 18, 2025 13:46
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