mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-16 22:21:19 +00:00
lib-vt: enable freestanding wasm builds (#9301)
This makes `libghostty-vt` build for freestanding wasm targets (aka a browser) and produce a `ghostty-vt.wasm` file. This exports the same C API that libghostty-vt does. This commit specifically makes the changes necessary for the build to build properly and for us to run the build in CI. We don't yet actually try using it...
This commit is contained in:
committed by
GitHub
parent
3548acfac6
commit
9dc2e5978f
@@ -173,7 +173,13 @@ pub fn init(b: *std.Build, appVersion: []const u8) !Config {
|
||||
bool,
|
||||
"simd",
|
||||
"Build with SIMD-accelerated code paths. Results in significant performance improvements.",
|
||||
) orelse true;
|
||||
) orelse simd: {
|
||||
// We can't build our SIMD dependencies for Wasm. Note that we may
|
||||
// still use SIMD features in the Wasm-builds.
|
||||
if (target.result.cpu.arch.isWasm()) break :simd false;
|
||||
|
||||
break :simd true;
|
||||
};
|
||||
|
||||
config.wayland = b.option(
|
||||
bool,
|
||||
|
||||
Reference in New Issue
Block a user