Skip to content

Conversation

yshui
Copy link

@yshui yshui commented Oct 2, 2025

They are meaningless since cc-rs only generates static libraries. Having them does nothing and only causes confusion.

Closes #1444
Closes #594

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

We can have these functions deprecated, but we cannot just remove them as it would break compatibility and release a 2.0.0 release

@yshui
Copy link
Author

yshui commented Oct 4, 2025

emmm, can we create a version 2.0 branch then? i can change the PR target.

@NobodyXu
Copy link
Collaborator

NobodyXu commented Oct 4, 2025

We have absolutely no plan for 2.0, that'll just render too many build script to stick to a 1.0 version so we'd either backport to maintain 1.0 or give them up, which is not realistic

@yshui
Copy link
Author

yshui commented Oct 4, 2025

huh, and people really are using them even if they do nothing.

how about i also add a doc(hidden)?

@NobodyXu
Copy link
Collaborator

NobodyXu commented Oct 4, 2025

huh, and people really are using them even if they do nothing.

Thanks this reminds me, some does use it to build shared lib I think?

how about i also add a doc(hidden)?

Hmmm no that's bad, I'd prefer deprecated if we really want to do that

@yshui
Copy link
Author

yshui commented Oct 5, 2025

use it to build shared lib I think?

it won't work though. all they would get is liblibfoo.so.a.

@yshui yshui changed the title Remove shared_flag and static_flag Mark static_flag and shared_flag as deprecated Oct 5, 2025
@yshui yshui requested a review from NobodyXu October 5, 2025 06:08
They are meaningless since cc-rs only generates static libraries.

Closes rust-lang#1444
Closes rust-lang#594
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.

shared_flag and static_flag don't work
2 participants