-
Notifications
You must be signed in to change notification settings - Fork 70
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
build: update v8 to 12.7.224.18 #409
Open
mpwarres
wants to merge
25
commits into
proxy-wasm:main
Choose a base branch
from
mpwarres:v8_v12.7.224.18
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
644e5e2
Compile with C++20
mpwarres fdb5e93
Update googletest to v1.15.2
mpwarres aab1611
Patch proxy-wasm-cpp-sdk to work around g++ -std=c++20 compilation issue
mpwarres 749ebf8
Add temporary workaround for #412
mpwarres fc7a80b
Add -fno-sanitize=unsigned-integer-overflow to clang asan options
mpwarres c2f8102
Disable clang-tidy clang-diagnostic-builtin-macro-redefined check
mpwarres d7d6af7
Change asan config for NullVM and Wasmtime from clang-asan-strict to …
mpwarres 5092179
v8: update to 12.7.224.18
mpwarres ce012d6
Update v8.patch to revert v8 commit b26554ec368e9553782012c96aa5e99b1…
mpwarres 4614adf
Bind absl_* build targets referenced by v8 build rules
mpwarres ef3558a
Fetch fp16 dependency of v8, and patch v8 to find it
mpwarres 7a25b87
Set torque generator path to location where Bazel can find outputs
mpwarres a65d5e9
Tolerate deprecated declarations in v8
mpwarres bf4df28
Build with C++20, and take 2 at compiling v8 with -Wno-deprecated-dec…
mpwarres 42d7ee7
Fix tweak to where v8 looks for its fp16 dependency
mpwarres 93358c2
Additionally specify --host_cxxopt=-std=c++20
mpwarres c1161ce
Merge branch 'use-cpp-20' into v8_v12.7.224.18
mpwarres 394f075
Specify -Wno-invalid-offsetof for gcc builds
mpwarres e5407f4
Cherrypick V8 commit 35888fee7bbaaaf1f02ccc88a95c9a336fc790bc to addr…
mpwarres c4500ac
Use --cxxopt instead of --copt to specify -Wno-invalid-offsetof
mpwarres 8f34e8f
Add -Wno-deprecated to gcc cxxopt
mpwarres 4de318c
Merge branch 'main' into use-cpp-20
mpwarres abc9b10
Merge branch 'use-cpp-20' into v8_v12.7.224.18
mpwarres d4eec14
Specify -Wno-deprecated for gcc, take 2
mpwarres 06f6411
Set gcc warning flags via --host_cxxopt as well
mpwarres 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 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 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 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 |
---|---|---|
|
@@ -118,7 +118,7 @@ jobs: | |
os: ubuntu-22.04 | ||
arch: x86_64 | ||
action: test | ||
flags: --config=clang-asan-strict --define=crypto=system | ||
flags: --config=clang-asan --define=crypto=system | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the reason for that? |
||
- name: 'NullVM on Linux/x86_64 with TSan' | ||
engine: 'null' | ||
os: ubuntu-22.04 | ||
|
@@ -235,7 +235,7 @@ jobs: | |
os: ubuntu-22.04 | ||
arch: x86_64 | ||
action: test | ||
flags: --config=clang-asan-strict --define=crypto=system | ||
flags: --config=clang-asan --define=crypto=system | ||
- name: 'Wasmtime on Linux/aarch64' | ||
engine: 'wasmtime' | ||
repo: 'com_github_bytecodealliance_wasmtime' | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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,33 @@ | ||
# Address g++ -std=c++20 variadic template compilation issue: | ||
# https://github.com/proxy-wasm/proxy-wasm-cpp-host/pull/411#issuecomment-2295429152 | ||
|
||
diff --git a/proxy_wasm_api.h b/proxy_wasm_api.h | ||
index 166b49c..263d2b9 100644 | ||
--- a/proxy_wasm_api.h | ||
+++ b/proxy_wasm_api.h | ||
@@ -1207,7 +1207,7 @@ struct SimpleHistogram { | ||
template <typename... Tags> struct Counter : public MetricBase { | ||
static Counter<Tags...> *New(std::string_view name, MetricTagDescriptor<Tags>... fieldnames); | ||
|
||
- Counter<Tags...>(std::string_view name, MetricTagDescriptor<Tags>... descriptors) | ||
+ Counter(std::string_view name, MetricTagDescriptor<Tags>... descriptors) | ||
: Counter<Tags...>(std::string(name), std::vector<MetricTag>({toMetricTag(descriptors)...})) { | ||
} | ||
|
||
@@ -1256,7 +1256,7 @@ inline Counter<Tags...> *Counter<Tags...>::New(std::string_view name, | ||
template <typename... Tags> struct Gauge : public MetricBase { | ||
static Gauge<Tags...> *New(std::string_view name, MetricTagDescriptor<Tags>... fieldnames); | ||
|
||
- Gauge<Tags...>(std::string_view name, MetricTagDescriptor<Tags>... descriptors) | ||
+ Gauge(std::string_view name, MetricTagDescriptor<Tags>... descriptors) | ||
: Gauge<Tags...>(std::string(name), std::vector<MetricTag>({toMetricTag(descriptors)...})) {} | ||
|
||
SimpleGauge resolve(Tags... f) { | ||
@@ -1302,6 +1302,6 @@ inline Gauge<Tags...> *Gauge<Tags...>::New(std::string_view name, | ||
template <typename... Tags> struct Histogram : public MetricBase { | ||
static Histogram<Tags...> *New(std::string_view name, MetricTagDescriptor<Tags>... fieldnames); | ||
|
||
- Histogram<Tags...>(std::string_view name, MetricTagDescriptor<Tags>... descriptors) | ||
+ Histogram(std::string_view name, MetricTagDescriptor<Tags>... descriptors) | ||
: Histogram<Tags...>(std::string(name), | ||
std::vector<MetricTag>({toMetricTag(descriptors)...})) {} |
This file contains 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.
Oops, something went wrong.
Oops, something went wrong.
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.
As a general rule, those V8 workarounds should be:
v8.patch
as patches against V8'sbazel/defs.bzl
,Especially, because those
cxxopts
won't be propagated to dependent projects (i.e. Envoy).