wasm shell + destructuring
This commit is contained in:
@@ -118,6 +118,12 @@ pub const Compilation = struct {
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Get custom WASM shell template path set from #run build blocks, if any.
|
||||
pub fn getBuildWasmShell(self: *Compilation) ?[]const u8 {
|
||||
if (self.ir_emitter) |*e| return e.build_config.wasm_shell_path;
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Collect C import source info from the resolved AST.
|
||||
pub fn collectCImportSources(self: *Compilation) ![]c_import.CImportInfo {
|
||||
const root = self.resolved_root orelse self.root orelse return &.{};
|
||||
|
||||
Reference in New Issue
Block a user