Skip to content

Commit

Permalink
fix: set platform-target for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Mar 7, 2025
1 parent 09bdb32 commit f228476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ pub fn ldcBuildStep(b: *Build, options: DCompileStep) !*Build.Step.InstallDir {
.use_webgl2 = backend != .wgpu,
.use_emmalloc = options.betterC,
.use_filesystem = false,
.use_drt = !options.betterC and options.target.result.isWasm(),
.use_drt = !options.betterC and isPlatform(options.target.result, .web),
.use_ubsan = options.artifact.?.root_module.sanitize_c orelse false,
.release_use_lto = options.artifact.?.want_lto orelse false,
.shell_file_path = b.path("src/sokol/web/shell.html"),
Expand Down

0 comments on commit f228476

Please sign in to comment.