- Disable v8_enable_static_roots according to 'https://groups.google.com/g/v8-reviews/c/GIhTcy8qMe4?pli=1'
- Fix minor changes with std::move and lvalues in v8/src/base
- Move -fconcepts flag to 'cflags_cc' instead of 'cflags'
Change-Id: Ib82c8333750d86a0ccc3a01f95c13c9d5d4d5a2d
Signed-off-by: Daniil Ruban <intx82@gmail.com>
if (!is_clang) {
# Use pipes for communicating between sub-processes. Faster.
# (This flag doesn't do anything with Clang.)
- cflags += [ "-pipe", "-fconcepts", "-flax-vector-conversions" ]
+ cflags += [ "-pipe", "-flax-vector-conversions" ]
+ cflags_cc += [ "-fconcepts" ]
}
ldflags += [
v8_enable_snapshot_native_code_counters = ""
# Use pre-generated static root pointer values from static-roots.h.
- v8_enable_static_roots = ""
+ v8_enable_static_roots = false
# Mode used by gen-static-roots.py to have a heap layout which is identical
# to when v8_enable_static_roots is enabled.
"U must be convertible to T");
return storage_.is_populated_
? std::move(storage_.value_)
- : static_cast<T>(std::forward<U>(default_value));
+ : default_value;
}
void swap(Optional& other) {