mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 00:13:43 +00:00
gc: drop support for 'precise' globals
Precise globals require a whole program optimization pass that is hard to support when building packages separately. This patch removes support for these globals by converting the last use (Linux) to use linker-defined symbols instead. For details, see: https://github.com/tinygo-org/tinygo/issues/2870
This commit is contained in:
committed by
Ron Evans
parent
5c488e3145
commit
2d61972475
@@ -0,0 +1,11 @@
|
||||
//go:build linux && (baremetal || nintendoswitch || wasi)
|
||||
// +build linux
|
||||
// +build baremetal nintendoswitch wasi
|
||||
|
||||
// Other systems that aren't operating systems supported by the Go toolchain
|
||||
// need to pretend to be an existing operating system. Linux seems like a good
|
||||
// choice for this for its wide hardware support.
|
||||
|
||||
package runtime
|
||||
|
||||
const GOOS = "linux"
|
||||
Reference in New Issue
Block a user