From 80e867201616f9867baa819bb064aaab01cf4d5f Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 8 Feb 2021 21:36:37 -0600 Subject: [PATCH] starting to think about build options --- core/build_opts.onyx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 core/build_opts.onyx 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 -- 2.25.1