sysaudio: improve self-hosted compiler support (use darwin @cImport workaround)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
fd8153b231
commit
f756af8bcd
2 changed files with 814 additions and 3 deletions
|
|
@ -1,3 +1,10 @@
|
|||
pub usingnamespace @cImport({
|
||||
@cInclude("soundio/soundio.h");
|
||||
});
|
||||
pub usingnamespace if (@import("builtin").zig_backend == .stage1)
|
||||
@cImport({
|
||||
@cInclude("soundio/soundio.h");
|
||||
})
|
||||
else
|
||||
// TODO(self-hosted): HACK: workaround https://github.com/ziglang/zig/issues/12483
|
||||
//
|
||||
// Extracted from a build using stage1 from zig-cache/ (`cimport.zig`)
|
||||
// Then find+replace `= ?fn` -> `= ?*const fn`
|
||||
@import("cimport1.zig");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue