summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-03 22:40:22 +0800
committerruki <[email protected]>2021-02-03 22:40:22 +0800
commit7dcf5af6dfde93b1380ea9f5e6d1a7eb83c6b34d (patch)
treefc3abd570f0c79c4b976cddabdf3bf50a6ae846e /tests/projects
parent659b1d101aa05cff29f36b01d5d9f192edb30997 (diff)
add toolchain for llvm-mingw tests
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/package/toolchain_llvm_mingw/src/main.c7
-rw-r--r--tests/projects/package/toolchain_llvm_mingw/xmake.lua7
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"})