asm...
This commit is contained in:
@@ -223,6 +223,11 @@ fn compileCForBuild(allocator: std.mem.Allocator, io: std.Io, comp: *sx.core.Com
|
||||
const c_infos = try comp.collectCImportSources();
|
||||
if (c_infos.len == 0) return &.{};
|
||||
|
||||
// For Emscripten targets, use emcc to cross-compile C sources
|
||||
if (comp.target_config.isEmscripten()) {
|
||||
return try sx.c_import.compileCWithEmcc(allocator, io, c_infos);
|
||||
}
|
||||
|
||||
const obj_bufs = try sx.c_import.compileCToObjects(allocator, c_infos);
|
||||
return try sx.c_import.writeCObjectFiles(allocator, io, obj_bufs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user