summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2022-11-05 06:31:44 +0800
committerGitHub <[email protected]>2022-11-05 06:31:44 +0800
commitfbee3ddca4ce14ea537595ddf99067f5d7db6554 (patch)
treedb25b637b7ee15176ff84412ef3b8ba834809ba3 /tests
parenta0c0fc7e3517e10e400e6d48338fa596202bd21c (diff)
parentcd121fd4f8134fba82e6377e9c99c76d98c210e5 (diff)
Merge pull request #3017 from star-hengxing/ispc
support ispc compiler
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/other/ispc/.gitignore8
-rw-r--r--tests/projects/other/ispc/src/main.cpp8
-rw-r--r--tests/projects/other/ispc/src/test.ispc1
-rw-r--r--tests/projects/other/ispc/xmake.lua8
4 files changed, 25 insertions, 0 deletions
diff --git a/tests/projects/other/ispc/.gitignore b/tests/projects/other/ispc/.gitignore
new file mode 100644
index 000000000..152105761
--- /dev/null
+++ b/tests/projects/other/ispc/.gitignore
@@ -0,0 +1,8 @@
+# Xmake cache
+.xmake/
+build/
+
+# MacOS Cache
+.DS_Store
+
+
diff --git a/tests/projects/other/ispc/src/main.cpp b/tests/projects/other/ispc/src/main.cpp
new file mode 100644
index 000000000..4694c47c5
--- /dev/null
+++ b/tests/projects/other/ispc/src/main.cpp
@@ -0,0 +1,8 @@
+#include "test_ispc.h"
+
+using namespace ispc;
+
+int main(int argc, char *argv[])
+{
+ test_ispc();
+}
diff --git a/tests/projects/other/ispc/src/test.ispc b/tests/projects/other/ispc/src/test.ispc
new file mode 100644
index 000000000..64506d6ef
--- /dev/null
+++ b/tests/projects/other/ispc/src/test.ispc
@@ -0,0 +1 @@
+export void test_ispc() {} \ No newline at end of file
diff --git a/tests/projects/other/ispc/xmake.lua b/tests/projects/other/ispc/xmake.lua
new file mode 100644
index 000000000..577c6798b
--- /dev/null
+++ b/tests/projects/other/ispc/xmake.lua
@@ -0,0 +1,8 @@
+add_rules("mode.debug", "mode.release")
+
+target("test")
+ set_kind("binary")
+ add_rules("utils.ispc", {header_extension = "_ispc.h"})
+ set_values("ispc.flags", "--target=host")
+ add_files("src/*.ispc")
+ add_files("src/*.cpp")