diff options
| author | ruki <[email protected]> | 2017-02-21 11:28:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-21 11:28:30 +0800 |
| commit | 4d635c3a48b87f92866ebfbc229558becf896158 (patch) | |
| tree | ee06a532b0f10dfe889f869b5e6981d888770336 /tests | |
| parent | 02aa42bce096ac637a932c2c96cf0d538746308a (diff) | |
add dlang languages and tools for macosx
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/console_dlang/src/main.d | 6 | ||||
| -rwxr-xr-x | tests/console_dlang/xmake.lua | 32 | ||||
| -rw-r--r-- | tests/console_go/src/main.go | 8 |
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 /* ///////////////////////////////////////////////////////////////////////////////////////////////// |
