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

fix: remove ctor #339

Merged
merged 1 commit into from
Feb 2, 2024
Merged

fix: remove ctor #339

merged 1 commit into from
Feb 2, 2024

Conversation

usamoi
Copy link
Collaborator

@usamoi usamoi commented Feb 2, 2024

For reference: mmastrac/rust-ctor#280

The simplest solution is to just remove it.

Signed-off-by: usamoi <usamoi@outlook.com>
@usamoi usamoi added this pull request to the merge queue Feb 2, 2024
Merged via the queue into tensorchord:main with commit 4eb1f87 Feb 2, 2024
7 checks passed
@VoVAllen
Copy link
Member

VoVAllen commented Feb 2, 2024

What's ctor for? Does it cause any bug in the current version?

@usamoi
Copy link
Collaborator Author

usamoi commented Feb 2, 2024

What's ctor for? Does it cause any bug in the current version?

It's for initializing instruction detection so that we do not need to check cpuid every time.

rustc does not add --whole-archive to linker options for deps so it's possible that functions marked ctor do not actually run.

In current binary releases it does not cause any bugs but we cannot guarantee it.

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