diff --git a/tools/v8_gypfiles/highway.gyp b/tools/v8_gypfiles/highway.gyp index c7f915b76e2f..469640bf3848 100644 --- a/tools/v8_gypfiles/highway.gyp +++ b/tools/v8_gypfiles/highway.gyp @@ -31,6 +31,12 @@ ['v8_target_arch=="arm" and arm_version==7', { 'defines': ['HWY_BROKEN_EMU128=0',], }], + # rv64gc has no SIMD baseline. With GCC before 16 Highway would fall back to + # HWY_SCALAR, where hw::FixedTag in V8's json-stringifier.cc does + # not compile, so use EMU128 as above. + ['v8_target_arch=="riscv64"', { + 'defines': ['HWY_BROKEN_EMU128=0',], + }], ], }, 'include_dirs': [