-
Notifications
You must be signed in to change notification settings - Fork 682
Fix clang 11 and make icudata embed portable #3
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
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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,12 +1,10 @@ | ||
| load("//:build/wd_cc_embed.bzl", "wd_cc_embed") | ||
| load("@capnp-cpp//src/capnp:cc_capnp_library.bzl", "cc_capnp_library") | ||
|
|
||
| wd_cc_embed( | ||
| cc_capnp_library( | ||
| name = "icudata-embed", | ||
| base_name = "icudata-embed", | ||
| srcs = ["icudata-embed.capnp"], | ||
| strip_include_prefix = "", | ||
| defines = [ | ||
| "WORKERD_ICU_DATA_EMBED=EMBED_com_googlesource_chromium_icu_common_icudtl_dat" | ||
| ], | ||
| data = ["@com_googlesource_chromium_icu//:icudata"], | ||
| visibility = ["//visibility:public"], | ||
| data = ["@com_googlesource_chromium_icu//:icudata"], | ||
| defines = [ "WORKERD_ICU_DATA_EMBED" ], | ||
| ) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| @0x9ed733e2dd15598b; | ||
| # This file is a hack to embed the ICU data file which libicu needs at runtime to do its thing. | ||
| # It's inconvenient to ship this file separately so we bake it into the binary. (V8's normal GN | ||
| # build can actually do this for us, but we use the Bazel build which doesn't have this option.) | ||
| # | ||
| # We use Cap'n Proto to do the embedding because it's conveniently cross-platform, but this is | ||
| # pretty ugly as it generates a 57MB C++ source file (containing a giant byte array literal). | ||
| # It would be nice to use some more direct way of embedding binary data into a symbol in the | ||
| # executable, but I couldn't figure out how to do this portably. (See the commit which introduced | ||
| # this file to see the old Linux-only solution, but it didn't work on Mac and I didn't want to | ||
| # figure it out.) | ||
|
|
||
| const embeddedIcuDataFile :Data = embed "external/com_googlesource_chromium_icu/common/icudtl.dat"; |
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
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
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
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.
Should we explicitly recommend at least clang 15 still?
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.
Nah, I don't think it matters. The only difference I'm aware of is the one missing use of concepts but it doesn't seem like enough to tell people to do extra work.