wasm: Add a nontrapping_bulk_memory_len0 feature.
This will mainly be used when targeting our wasm2c implementation which has no problem with zero-length bulk memory operations, as a non-standard extension.
This commit is contained in:
@@ -598,9 +598,10 @@ fn addWasiUpdateStep(b: *std.Build, version: [:0]const u8) !void {
|
||||
.optimize = .ReleaseSmall,
|
||||
.target = b.resolveTargetQuery(std.Target.Query.parse(.{
|
||||
.arch_os_abi = "wasm32-wasi",
|
||||
// `extended_const` is not supported by the `wasm-opt` version in CI.
|
||||
// `nontrapping_fptoint` is not supported by `wasm2c`.
|
||||
.cpu_features = "baseline-extended_const-nontrapping_fptoint",
|
||||
// * `extended_const` is not supported by the `wasm-opt` version in CI.
|
||||
// * `nontrapping_fptoint` is not supported by `wasm2c`.
|
||||
// * `nontrapping_bulk_memory_len0` is supported by `wasm2c`.
|
||||
.cpu_features = "baseline-extended_const-nontrapping_fptoint+nontrapping_bulk_memory_len0",
|
||||
}) catch unreachable),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user