Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/fakecgo/threadentry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// 386/arm are excluded: the standalone fakecgo test binary resolves pthread
// from libpthread.so.0, which fails the dynamic symbol lookup on 32-bit linux.
//go:build !cgo && (linux || darwin || freebsd || illumos || netbsd) && !386 && !arm
//go:build !cgo && !(go1.28 && goexperiment.runtimecgopurego) && !go1.29 && (linux || darwin || freebsd || illumos || netbsd) && !386 && !arm

package fakecgo

Expand Down
2 changes: 1 addition & 1 deletion nocgo.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors

//go:build !cgo && (darwin || freebsd || illumos || linux || netbsd)
//go:build !cgo && !(go1.28 && goexperiment.runtimecgopurego) && !go1.29 && (darwin || freebsd || illumos || linux || netbsd)

package purego

Expand Down
11 changes: 11 additions & 0 deletions nocgo_go128.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2026 The Ebitengine Authors

//go:build !cgo && ((go1.28 && goexperiment.runtimecgopurego) || go1.29) && (darwin || freebsd || illumos || linux || netbsd)

package purego

// Go 1.28 introduces a pure-Go and assembly implementation of runtime/cgo,
// so there's no longer a need for fakecgo and we can implement the true
// runtime/cgo.
import _ "runtime/cgo"
Loading