aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-06-22 16:01:26 +0100
committergingerBill <bill@gingerbill.org>2020-06-22 16:01:26 +0100
commit0db1ebb4e5bf36a7c44b9119bcf3055a58fd6103 (patch)
tree3413a527bdc5c5eb3dad9064b69ddf8cbacd2149
parent0013033f9a859784659346a558feaa21b4093d34 (diff)
`-vet` `sync/channel.odin`
-rw-r--r--build.bat14
-rw-r--r--core/sync/channel.odin2
2 files changed, 12 insertions, 4 deletions
diff --git a/build.bat b/build.bat
index f39e8cbac..27cec4ea1 100644
--- a/build.bat
+++ b/build.bat
@@ -9,7 +9,7 @@ if "%1" == "1" (
) else if "%1" == "release" (
set release_mode=1
) else (
- set release_mode=0
+ set release_mode=1
)
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -EHsc- -GR- -GF
@@ -49,9 +49,15 @@ set linker_settings=%libs% %linker_flags%
del *.pdb > NUL 2> NUL
del *.ilk > NUL 2> NUL
-cl %compiler_settings% "src\main.cpp" ^
- /link %linker_settings% -OUT:%exe_name% ^
- && odin run examples/demo/demo.odin
+rem cl %compiler_settings% "src\main.cpp" ^
+rem /link %linker_settings% -OUT:%exe_name% ^
+rem && odin run examples/demo/demo.odin -llvm-api -vet
+rem odin build examples/wasm.odin -llvm-api -target:wasm32 -keep-temp-files
+rem odin run generate-wasm.odin
+rem odin build examples/threading -llvm-api -target:darwin_amd64
+odin run examples/threading -llvm-api
+
+
if %errorlevel% neq 0 (
goto end_of_build
)
diff --git a/core/sync/channel.odin b/core/sync/channel.odin
index 832af9bf6..f870aff54 100644
--- a/core/sync/channel.odin
+++ b/core/sync/channel.odin
@@ -4,6 +4,8 @@ import "core:mem"
import "core:time"
import "core:math/rand"
+_, _ :: time, rand;
+
Channel :: struct(T: typeid) {
using internal: ^_Channel_Internal(T),
_: bool,