From 75a2bc862eae7ed95ddee16e4271b773c95aeb65 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 8 Dec 2015 11:21:18 +0800 Subject: add swift compiler --- tests/console/src/demo/demo.swift | 2 ++ tests/console/src/demo/xmake.lua | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 tests/console/src/demo/demo.swift (limited to 'tests/console/src') 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") -- cgit v1.3.1