diff options
| author | ruki <[email protected]> | 2020-07-24 23:09:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-07-24 23:09:16 +0800 |
| commit | 85d358dce2bcf06a31e87407391175cea6b7c7e6 (patch) | |
| tree | b30fc112b544cb0232a92f2587be355d494bb3f5 /tests | |
| parent | 52979164630aebfea2bda906ed5b9e29b865fcb7 (diff) | |
improve go test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/go/console_with_deps/xmake.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/projects/go/console_with_deps/xmake.lua b/tests/projects/go/console_with_deps/xmake.lua index 41c80304e..d3324d855 100644 --- a/tests/projects/go/console_with_deps/xmake.lua +++ b/tests/projects/go/console_with_deps/xmake.lua @@ -1,10 +1,15 @@ add_rules("mode.debug", "mode.release") -add_requires("go::golang.org/x/sys/unix", {alias = "unix"}) add_requires("go::github.com/sirupsen/logrus", {alias = "logrus"}) +add_requires("go::golang.org/x/sys/internal/unsafeheader", {alias = "unsafeheader"}) +if is_plat("windows") then + add_requires("go::golang.org/x/sys/windows", {alias = "syshost"}) +else + add_requires("go::golang.org/x/sys/unix", {alias = "syshost"}) +end target("test") set_kind("binary") add_files("src/*.go") - add_packages("logrus", "unix") + add_packages("logrus", "syshost", "unsafeheader") |
