diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-03 19:04:04 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-03 19:04:04 -0400 |
commit | f0c6f08beac2ad6699af7707c51f9049db1b18c1 (patch) | |
tree | 6771d09818287f0bcdd519ef81efe2446ac000df /tests/std/base.toc | |
parent | 9661c9839d6635181b81e0a1061dfa566f7660fe (diff) |
got tests to work on windows (fixed some problems with them)
Diffstat (limited to 'tests/std/base.toc')
-rw-r--r-- | tests/std/base.toc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/std/base.toc b/tests/std/base.toc new file mode 100644 index 0000000..bdb91e0 --- /dev/null +++ b/tests/std/base.toc @@ -0,0 +1,23 @@ +PLATFORM_OTHER ::= 0; +PLATFORM_LINUX ::= 1; +PLATFORM_WINDOWS ::= 2; +PLATFORM_OSX ::= 3; +PLATFORM_FREEBSD ::= 4; +PLATFORM_OPENBSD ::= 5; +PLATFORM_MISC_UNIX ::= 6; + +PLATFORM ::= #builtin("platform"); +#if PLATFORM == PLATFORM_LINUX { + libc ::= "libc.so.6"; +} elif PLATFORM == PLATFORM_WINDOWS { + libc ::= "msvcrt.dll"; +} elif PLATFORM == PLATFORM_OSX { + libc ::= "libc.dylib"; +} elif PLATFORM == PLATFORM_FREEBSD || PLATFORM == PLATFORM_OPENBSD { + libc ::= "libc.so"; +} else { + /* maybe it's non-linux gnu? */ + libc ::= "libc.so.6"; +} + + |