diff options
| author | Karl Zylinski <karl@zylinski.se> | 2024-09-07 22:02:17 +0200 |
|---|---|---|
| committer | Karl Zylinski <karl@zylinski.se> | 2024-09-07 22:02:17 +0200 |
| commit | 8c636ac37b7cd0bb8405862fe9e003b7e67287b4 (patch) | |
| tree | 5c5dc38e0eba6801b9dffcc21f1a99dfb10139cc /core/flags | |
| parent | a99e57c62c1c2d6b0e7a5fcd841eba79e9255d5b (diff) | |
Fix build tags that use ! multiple times on one line. Those don't actually do anything since build tags use OR within the line. So something like //+build !windows, !linux would actually build on both linux and windows. What was intended in all these cases was probably AND, which you get by splitting them into separate lines.
Diffstat (limited to 'core/flags')
| -rw-r--r-- | core/flags/errors_nonbsd.odin | 3 | ||||
| -rw-r--r-- | core/flags/internal_rtti_nonbsd.odin | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/flags/errors_nonbsd.odin b/core/flags/errors_nonbsd.odin index a77f12abf..e129aff74 100644 --- a/core/flags/errors_nonbsd.odin +++ b/core/flags/errors_nonbsd.odin @@ -1,4 +1,5 @@ -//+build !netbsd !openbsd +//+build !netbsd +//+build !openbsd package flags import "base:runtime" diff --git a/core/flags/internal_rtti_nonbsd.odin b/core/flags/internal_rtti_nonbsd.odin index 27fdb3b75..0044898d5 100644 --- a/core/flags/internal_rtti_nonbsd.odin +++ b/core/flags/internal_rtti_nonbsd.odin @@ -1,5 +1,6 @@ //+private -//+build !netbsd !openbsd +//+build !netbsd +//+build !openbsd package flags import "core:net" |