diff options
| author | ruki <[email protected]> | 2020-07-19 12:58:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-07-19 12:58:57 +0800 |
| commit | 4ef022737b74da6e2c2e2a351424dd281ea7cf0c (patch) | |
| tree | 29771c2bc94454ef8707c86aba350bf592120654 /xmake/modules/core/tools/go.lua | |
| parent | 5bcf2414231f41c96be8ba8403a17b679c18af59 (diff) | |
add goos and goarch
Diffstat (limited to 'xmake/modules/core/tools/go.lua')
| -rw-r--r-- | xmake/modules/core/tools/go.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/go.lua b/xmake/modules/core/tools/go.lua index 80230ba4f..b62ad4e22 100644 --- a/xmake/modules/core/tools/go.lua +++ b/xmake/modules/core/tools/go.lua @@ -106,7 +106,8 @@ function link(self, objectfiles, targetkind, targetfile, flags) os.mkdir(path.directory(targetfile)) -- link it - os.runv(linkargv(self, objectfiles, targetkind, targetfile, flags)) + local program, argv = linkargv(self, objectfiles, targetkind, targetfile, flags) + os.runv(program, argv, {envs = self:runenvs()}) end -- make the compile arguments list @@ -121,6 +122,7 @@ function compile(self, sourcefiles, objectfile, dependinfo, flags) os.mkdir(path.directory(objectfile)) -- compile it - os.runv(compargv(self, sourcefiles, objectfile, flags)) + local program, argv = compargv(self, sourcefiles, objectfile, flags) + os.runv(program, argv, {envs = self:runenvs()}) end |
