Multiple constraints on the same line are combined with logical OR, while combining multiple negated constraints needs to be done with logical AND (each constraint on a separate line).
@@ -1,4 +1,5 @@
-//+build !freestanding !js
+//+build !freestanding
+//+build !js
package fmt
import "core:runtime"
@@ -1,4 +1,8 @@
-//+build !freestanding !wasi !windows !js !darwin
+//+build !darwin
+//+build !wasi
+//+build !windows
package runtime
import "core:os"