| ... | ... | @@ -1064,6 +1064,9 @@ pub const LibExeObjStep = struct { |
| 1064 | 1064 | /// Uses system QEMU installation to run cross compiled foreign architecture build artifacts. |
| 1065 | 1065 | enable_qemu: bool = false, |
| 1066 | 1066 | |
| 1067 | /// Uses system Wasmtime installation to run cross compiled wasm/wasi build artifacts. |
| 1068 | enable_wasmtime: bool = false, |
| 1069 | |
| 1067 | 1070 | /// After following the steps in https://github.com/ziglang/zig/wiki/Updating-libc#glibc, |
| 1068 | 1071 | /// this will be the directory $glibc-build-dir/install/glibcs |
| 1069 | 1072 | /// Given the example of the aarch64 target, this is the directory |
| ... | ... | @@ -1863,6 +1866,11 @@ pub const LibExeObjStep = struct { |
| 1863 | 1866 | try zig_args.append(bin_name); |
| 1864 | 1867 | try zig_args.append("--test-cmd-bin"); |
| 1865 | 1868 | }, |
| 1869 | .wasmtime => |bin_name| if (self.enable_wasmtime) { |
| 1870 | try zig_args.append("--test-cmd"); |
| 1871 | try zig_args.append(bin_name); |
| 1872 | try zig_args.append("--test-cmd-bin"); |
| 1873 | }, |
| 1866 | 1874 | } |
| 1867 | 1875 | for (self.packages.toSliceConst()) |pkg| { |
| 1868 | 1876 | zig_args.append("--pkg-begin") catch unreachable; |