diff options
| author | ruki <[email protected]> | 2021-05-08 16:47:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-08 16:47:42 +0800 |
| commit | 6a803af51efe12c76a48da851dbdf69242c4eebe (patch) | |
| tree | 45bbbe3850e77e08f855b51aefe582ae32528ec6 | |
| parent | cab3fb99fdc5a4a9fd97437cf4ed8a232a12ebc9 (diff) | |
improve nvcc/link
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index df4a6b7f4..ec52c63e1 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -270,7 +270,8 @@ end -- link the target file function link(self, objectfiles, targetkind, targetfile, flags) os.mkdir(path.directory(targetfile)) - 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 -- support `-MMD -MF depfile.d`? some old gcc does not support it at same time |
