mirror of
https://github.com/exoticorn/microw8.git
synced 2026-01-20 19:26:43 +01:00
enable nontrapping fptoint feature in c and zig example
This commit is contained in:
@@ -5,7 +5,11 @@ pub fn build(b: *std.build.Builder) void {
|
||||
|
||||
const lib = b.addSharedLibrary("cart", "main.zig", .unversioned);
|
||||
lib.setBuildMode(mode);
|
||||
lib.setTarget(.{ .cpu_arch = .wasm32, .os_tag = .freestanding });
|
||||
lib.setTarget(.{
|
||||
.cpu_arch = .wasm32,
|
||||
.os_tag = .freestanding,
|
||||
.cpu_features_add = std.Target.wasm.featureSet(&.{ .nontrapping_fptoint })
|
||||
});
|
||||
lib.import_memory = true;
|
||||
lib.initial_memory = 262144;
|
||||
lib.max_memory = 262144;
|
||||
|
||||
Reference in New Issue
Block a user