summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-21 11:28:30 +0800
committerruki <[email protected]>2017-02-21 11:28:30 +0800
commit4d635c3a48b87f92866ebfbc229558becf896158 (patch)
treeee06a532b0f10dfe889f869b5e6981d888770336 /tests
parent02aa42bce096ac637a932c2c96cf0d538746308a (diff)
add dlang languages and tools for macosx
Diffstat (limited to 'tests')
-rw-r--r--tests/console_dlang/src/main.d6
-rwxr-xr-xtests/console_dlang/xmake.lua32
-rw-r--r--tests/console_go/src/main.go8
3 files changed, 38 insertions, 8 deletions
diff --git a/tests/console_dlang/src/main.d b/tests/console_dlang/src/main.d
new file mode 100644
index 000000000..524c4f94c
--- /dev/null
+++ b/tests/console_dlang/src/main.d
@@ -0,0 +1,6 @@
+import std.stdio;
+
+void main()
+{
+ writeln("hello world!");
+}
diff --git a/tests/console_dlang/xmake.lua b/tests/console_dlang/xmake.lua
new file mode 100755
index 000000000..2f040a763
--- /dev/null
+++ b/tests/console_dlang/xmake.lua
@@ -0,0 +1,32 @@
+-- the debug mode
+if is_mode("debug") then
+
+ -- enable the debug symbols
+ set_symbols("debug")
+
+ -- disable optimization
+ set_optimize("none")
+end
+
+-- the release mode
+if is_mode("release") then
+
+ -- set the symbols visibility: hidden
+ set_symbols("hidden")
+
+ -- enable fastest optimization
+ set_optimize("fastest")
+
+ -- strip all symbols
+ set_strip("all")
+end
+
+-- add target
+target("console_dlang")
+
+ -- set kind
+ set_kind("binary")
+
+ -- add files
+ add_files("src/*.d")
+
diff --git a/tests/console_go/src/main.go b/tests/console_go/src/main.go
index c91ae5091..8ea127243 100644
--- a/tests/console_go/src/main.go
+++ b/tests/console_go/src/main.go
@@ -1,11 +1,3 @@
-/*!The Qiyi Golang Backend Server
- *
- * Copyright (C) 2016, qiyi.com All rights reserved.
- *
- * @author ruki
- * @file main.go
- *
- */
package main
/* /////////////////////////////////////////////////////////////////////////////////////////////////