We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 513f947 commit 4ec411dCopy full SHA for 4ec411d
loader/goroot.go
@@ -227,13 +227,19 @@ func needsSyscallPackage(buildTags []string) bool {
227
228
// linuxNetworking returns whether the unmodified go linux net stack should be used
229
// until the full rework of the net package is done.
230
+// To ensure the correct build target, check for the following tags:
231
+// linux && !baremetal && !nintendoswitch && !tinygo.wasm
232
func linuxNetworking(buildTags []string) bool {
233
+ targetLinux := false
234
for _, tag := range buildTags {
235
if tag == "linux" {
- return true
236
+ targetLinux = true
237
+ }
238
+ if tag == "baremetal" || tag == "nintendoswitch" || tag == "tinygo.wasm" {
239
+ return false
240
}
241
- return false
242
+ return targetLinux
243
244
245
// The boolean indicates whether to merge the subdirs.
0 commit comments