Browse Source

core: Fixed build constraints

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).
Yawning Angel 1 year ago
parent
commit
29c80c238d
2 changed files with 7 additions and 2 deletions
  1. 2 1
      core/fmt/fmt_os.odin
  2. 5 1
      core/runtime/os_specific_any.odin

+ 2 - 1
core/fmt/fmt_os.odin

@@ -1,4 +1,5 @@
-//+build !freestanding !js
+//+build !freestanding
+//+build !js
 package fmt
 
 import "core:runtime"

+ 5 - 1
core/runtime/os_specific_any.odin

@@ -1,4 +1,8 @@
-//+build !freestanding !wasi !windows !js !darwin
+//+build !darwin
+//+build !freestanding
+//+build !js
+//+build !wasi
+//+build !windows
 package runtime
 
 import "core:os"