diff options
| author | ruki <[email protected]> | 2024-02-05 23:51:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-05 23:51:36 +0800 |
| commit | 8020014e06e7a43c9cd6cd3724f41521d8131723 (patch) | |
| tree | 3b901b4e1893c42a791b62f949d5b5d587e7b8da /tests/projects | |
| parent | 4972cfb86feab7310995ffeb84edd656017efab8 (diff) | |
add cosmocc toolchain and test
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/c/cosmocc/src/main.c | 6 | ||||
| -rw-r--r-- | tests/projects/c/cosmocc/xmake.lua | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/projects/c/cosmocc/src/main.c b/tests/projects/c/cosmocc/src/main.c new file mode 100644 index 000000000..a1ce06b81 --- /dev/null +++ b/tests/projects/c/cosmocc/src/main.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +int main(int argc, char** argv) { + printf("hello world\n"); + return 0; +} diff --git a/tests/projects/c/cosmocc/xmake.lua b/tests/projects/c/cosmocc/xmake.lua new file mode 100644 index 000000000..f625f7500 --- /dev/null +++ b/tests/projects/c/cosmocc/xmake.lua @@ -0,0 +1,9 @@ +add_rules("mode.debug", "mode.release") + +add_requires("cosmocc") + +target("test") + set_kind("binary") + add_files("src/*.c") + add_packages("cosmocc") + |
