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

LTO support broken #125

Closed
stlankes opened this issue May 6, 2021 · 1 comment
Closed

LTO support broken #125

stlankes opened this issue May 6, 2021 · 1 comment

Comments

@stlankes
Copy link
Contributor

stlankes commented May 6, 2021

The current compiler creates invalid code, if we enable LTO support. Consequently, we disable temporary the support.

stlankes added a commit that referenced this issue May 6, 2021
@stlankes
Copy link
Contributor Author

Link time optimization isn't possible between the static library OS and application because the linker uses afterwards SSE/AVX instructions in the kernel. This isn't allowed because it is possible that these instructions triggers an interrupt.

However, https://doc.rust-lang.org/cargo/reference/profiles.html#lto explains that a "thin local link time optimization" on the local crate is still possible (by setting lto to false)

stlankes added a commit that referenced this issue May 15, 2021
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

No branches or pull requests

1 participant