From: Brendan Hansen Date: Tue, 9 Feb 2021 03:36:37 +0000 (-0600) Subject: starting to think about build options X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=80e867201616f9867baa819bb064aaab01cf4d5f;p=onyx.git starting to think about build options --- diff --git a/core/build_opts.onyx b/core/build_opts.onyx new file mode 100644 index 00000000..ddebe1a5 --- /dev/null +++ b/core/build_opts.onyx @@ -0,0 +1,17 @@ +// This following sybmols are not meant to be included in any compilation. +// Instead, all of the commented out symbols are defined automatically by the compiler +// and can be used in compile time #if statements. + +// Runtime :: Runtime_Wasi OR Runtime_Js OR Runtime_Custom + +package build_opts + + +// At some point, these will become an enum. The problem at the moment is that +// compile-time if statements are not well integrated into other language features +// such as enums. They can only really handle compile time number math and boolean +// logic. - brendanfh 2020/02/08 + +Runtime_Wasi :: 1 +Runtime_Js :: 2 +Runtime_Custom :: 3