mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: fix - v fmt transforms compile time options in some cases (#16351)
This commit is contained in:
10
vlib/v/checker/constants/constants.v
Normal file
10
vlib/v/checker/constants/constants.v
Normal file
@@ -0,0 +1,10 @@
|
||||
module constants
|
||||
|
||||
// TODO: move all constants from `checker` to here, and replace the hardcoded one with the computed one
|
||||
pub const valid_comptime_not_user_defined = ['windows', 'ios', 'macos', 'mach', 'darwin', 'hpux',
|
||||
'gnu', 'qnx', 'linux', 'freebsd', 'openbsd', 'netbsd', 'bsd', 'dragonfly', 'android', 'termux',
|
||||
'solaris', 'haiku', 'serenity', 'vinix', 'gcc', 'tinyc', 'clang', 'mingw', 'msvc', 'cplusplus',
|
||||
'amd64', 'i386', 'aarch64', 'arm64', 'arm32', 'rv64', 'rv32', 'x64', 'x32', 'little_endian',
|
||||
'big_endian', 'apk', 'js', 'debug', 'prod', 'test', 'glibc', 'prealloc', 'no_bounds_checking',
|
||||
'freestanding', 'threads', 'js_node', 'js_browser', 'js_freestanding', 'interpreter', 'es5',
|
||||
'profile', 'wasm32_emscripten']
|
||||
Reference in New Issue
Block a user