aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorleongross <[email protected]>2024-06-25 09:52:05 +0200
committerAyke <[email protected]>2024-06-27 21:14:22 +0200
commit36958b2875eb777972e3813b347a9ab308b0fc14 (patch)
treea1acac0b8741b3b24735abc9f057c5427c18a27d
parentfae0402fdeba8a7d3a2e9b97019aeef7e3fae930 (diff)
downloadtinygo-36958b2875eb777972e3813b347a9ab308b0fc14.tar.gz
tinygo-36958b2875eb777972e3813b347a9ab308b0fc14.zip
add support for unix.Syscall* invocations
Signed-off-by: leongross <[email protected]>
-rw-r--r--compiler/compiler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/compiler.go b/compiler/compiler.go
index 0ae32cc94..966c56759 100644
--- a/compiler/compiler.go
+++ b/compiler/compiler.go
@@ -1846,7 +1846,7 @@ func (b *builder) createFunctionCall(instr *ssa.CallCommon) (llvm.Value, error)
return b.emitSV64Call(instr.Args, getPos(instr))
case strings.HasPrefix(name, "(device/riscv.CSR)."):
return b.emitCSROperation(instr)
- case strings.HasPrefix(name, "syscall.Syscall") || strings.HasPrefix(name, "syscall.RawSyscall"):
+ case strings.HasPrefix(name, "syscall.Syscall") || strings.HasPrefix(name, "syscall.RawSyscall") || strings.HasPrefix(name, "Syscall") || strings.HasPrefix(name, "golang.org/x/sys/unix.Syscall"):
return b.createSyscall(instr)
case strings.HasPrefix(name, "syscall.rawSyscallNoError"):
return b.createRawSyscallNoError(instr)