-
Notifications
You must be signed in to change notification settings - Fork 229
Fix LTO build #712
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
base: main
Are you sure you want to change the base?
Fix LTO build #712
Conversation
* Don't use LTO for startup objects * Put startup objects in the normal sysroot without LTO * Pass `-flto` in linker flags * Disable a test that fails with LTO enabled (unsure why)
|
This was discovered as part of WebAssembly/wasi-sdk#584 where the |
is this something specific to p2/p3? |
| endif() | ||
| add_libc_test(functional/search_insque.c) | ||
| if (LTO STREQUAL "full") | ||
| set_tests_properties(libc_test_functional_search_insque.wasm PROPERTIES WILL_FAIL TRUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a link to a bug report?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a bug report to link to. This repository does not control the source of this test, nor does this repository have WASI-specific source for insque and other functions. (I barely know what those functions are). If you'd like to open an issue I'd be happy to link it here.
why?
why?
this makes sense. |
|
Yes, startup objects are per-target. LTO is diasbles so the |
-fltoin linker flags