summaryrefslogtreecommitdiff
path: root/tests/console
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-08 11:21:18 +0800
committerruki <[email protected]>2015-12-08 11:21:18 +0800
commit75a2bc862eae7ed95ddee16e4271b773c95aeb65 (patch)
tree2480fec4245d006a52217fe6873852cc9ae1ee07 /tests/console
parent023bbfadd3a05f42e858a2a055bdf2f24f21aa78 (diff)
add swift compiler
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/src/demo/demo.swift2
-rw-r--r--tests/console/src/demo/xmake.lua4
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/console/src/demo/demo.swift b/tests/console/src/demo/demo.swift
new file mode 100644
index 000000000..81bc4f351
--- /dev/null
+++ b/tests/console/src/demo/demo.swift
@@ -0,0 +1,2 @@
+
+print("hello world!")
diff --git a/tests/console/src/demo/xmake.lua b/tests/console/src/demo/xmake.lua
index 81f9ebafd..f304aa255 100644
--- a/tests/console/src/demo/xmake.lua
+++ b/tests/console/src/demo/xmake.lua
@@ -51,3 +51,7 @@ add_target("demo_cpp")
add_ldflags("-framework Cocoa", "-framework IOKit", "-framework CoreFoundation")
end
end
+
+add_target("demo_swift")
+ set_kind("binary")
+ add_files("*.swift")