diff options
| author | ruki <[email protected]> | 2021-02-03 22:40:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-03 22:40:22 +0800 |
| commit | 7dcf5af6dfde93b1380ea9f5e6d1a7eb83c6b34d (patch) | |
| tree | fc3abd570f0c79c4b976cddabdf3bf50a6ae846e /tests/projects | |
| parent | 659b1d101aa05cff29f36b01d5d9f192edb30997 (diff) | |
add toolchain for llvm-mingw tests
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/package/toolchain_llvm_mingw/src/main.c | 7 | ||||
| -rw-r--r-- | tests/projects/package/toolchain_llvm_mingw/xmake.lua | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/projects/package/toolchain_llvm_mingw/src/main.c b/tests/projects/package/toolchain_llvm_mingw/src/main.c new file mode 100644 index 000000000..9ae580511 --- /dev/null +++ b/tests/projects/package/toolchain_llvm_mingw/src/main.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +int main(int argc, char** argv) +{ + printf("hello world!\n"); + return 0; +} diff --git a/tests/projects/package/toolchain_llvm_mingw/xmake.lua b/tests/projects/package/toolchain_llvm_mingw/xmake.lua new file mode 100644 index 000000000..0cb0d01b9 --- /dev/null +++ b/tests/projects/package/toolchain_llvm_mingw/xmake.lua @@ -0,0 +1,7 @@ +add_rules("mode.debug", "mode.release") +add_requires("llvm-mingw") + +target("test") + set_kind("binary") + add_files("src/*.c") + set_toolchains("mingw", {packages = "llvm-mingw"}) |
