File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -227,13 +227,19 @@ func needsSyscallPackage(buildTags []string) bool {
227
227
228
228
// linuxNetworking returns whether the unmodified go linux net stack should be used
229
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
230
232
func linuxNetworking (buildTags []string ) bool {
233
+ targetLinux := false
231
234
for _ , tag := range buildTags {
232
235
if tag == "linux" {
233
- return true
236
+ targetLinux = true
237
+ }
238
+ if tag == "baremetal" || tag == "nintendoswitch" || tag == "tinygo.wasm" {
239
+ return false
234
240
}
235
241
}
236
- return false
242
+ return targetLinux
237
243
}
238
244
239
245
// The boolean indicates whether to merge the subdirs.
You can’t perform that action at this time.
0 commit comments