diff options
| -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") |
