-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Update libcxx & libcxxabi to LLVM 17.0.4 #20707
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
Merged
aheejin
merged 17 commits into
emscripten-core:main
from
aheejin:llvm_17_libcxx_libcxxabi
Nov 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7110261
Update libcxx to LLVM 17.0.4
aheejin d851a31
Update libcxxabi to LLVM 17.0.4
aheejin 0661b1f
Update readme.txt
aheejin 82cb507
Set PSTL mode to serial
aheejin 0d869a8
Exclude libdispatch.cpp
aheejin 4ceafff
_LIBCPP_NO_EXCEPTIONS -> _LIBCPP_HAS_NO_EXCEPTIONS
aheejin 1ff3ac1
Don't call `__libcpp_verbose_abort`
aheejin 08c4544
Rebaseline other.test_minimal_runtime_code_size_hello_embind_val
aheejin 4d3b539
Rebaseline other.test_metadce_files_wasmfs
aheejin 5524101
Rebaseline other.test_metadce_cxx_ctors2
aheejin 1abbfd7
Add a trailing comma after libdispatch.cpp
aheejin 8c5a65e
Define _LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT in __config_site
aheejin 1a9b7d8
Merge branch 'main' into llvm_17_libcxx_libcxxabi
aheejin 728738f
Rebaseline other.test_metadce_files_wasmfs again
aheejin f3b7d78
Merge branch 'main' into llvm_17_libcxx_libcxxabi
aheejin 31c442b
Revert "Don't call `__libcpp_verbose_abort`"
aheejin b95bc8e
Merge branch 'main' into llvm_17_libcxx_libcxxabi
aheejin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 51616 | ||
| 60220 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This seems like a pretty big bump that might be worth investigating. Is print being pulled in where it wasn't before for some reason?
There are a few useful linking command line tricks for tracking down why symbols get included. For example
--trace-symboland maybe-Wl,-Map=.Uh oh!
There was an error while loading. Please reload this page.
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.
Yeah this also turned out to be the
__libcpp_verbose_abortissue. We thought adding-D_LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORTin libcxx'ssystem_libs.pywould solve the issue, but those routines are in the headers. So these routines can be called whenever a user gives errorneous arguments tostringorvectorallocations, so basically any user code can pull these__libcpp_verbose_abortin. In this case libwasmfs code pulled in__libcpp_verbose_abortand thus theprintffamily. We can add-D_LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORTto libwasmfs'scflagsinsystem_libs.pybut that's just a band-aid for libwasmfs because we can't do that for all user code.I guess we should just define it in https://github.com/emscripten-core/emscripten/blob/main/system/lib/libcxx/include/__verbose_abort. WDYT?
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.
Ping 😀
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.
How about defining it
system/lib/libcxx/include/__config_siteThere 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.
Done