From 29c80c238d7ec2a571fe8e6ac2171235d1b83fd9 Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Sun, 17 Dec 2023 22:58:44 +0900 Subject: [PATCH] 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). --- core/fmt/fmt_os.odin | 3 ++- core/runtime/os_specific_any.odin | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/fmt/fmt_os.odin b/core/fmt/fmt_os.odin index 1f0ccf41265..3d1b0847b70 100644 --- a/core/fmt/fmt_os.odin +++ b/core/fmt/fmt_os.odin @@ -1,4 +1,5 @@ -//+build !freestanding !js +//+build !freestanding +//+build !js package fmt import "core:runtime" diff --git a/core/runtime/os_specific_any.odin b/core/runtime/os_specific_any.odin index 5fffceeeb58..6a96655c433 100644 --- a/core/runtime/os_specific_any.odin +++ b/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"