diff options
| author | ruki <[email protected]> | 2023-10-27 03:50:01 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-27 03:50:01 -0500 |
| commit | 6af4b8528bfae7536fc77a5e7fb4341b3f11bc9a (patch) | |
| tree | 45bb260efc422e8692fc664ed80d9ddc9b56cb3c /xmake/modules/core/tools/nvcc.lua | |
| parent | eeda646a4e32b3d672a8097fe995cbdcf101c7aa (diff) | |
| parent | 1cb74a5009d8fbcb792aa6cc787943453cc5234a (diff) | |
Merge pull request #4314 from xmake-io/package
Support linkgroups and linkorders for package
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 038e2e75a..7050f86af 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -53,7 +53,7 @@ function init(self) end -- make the symbol flag -function nf_symbol(self, level, target) +function nf_symbol(self, level, opt) -- debug? generate *.pdb file local flags = nil @@ -62,6 +62,7 @@ function nf_symbol(self, level, target) if self:is_plat("windows") then local host_flags = nil local symbolfile = nil + local target = opt.target if target and target.symbolfile then symbolfile = target:symbolfile() end @@ -259,12 +260,12 @@ function nf_rpathdir(self, dir) end -- make the c precompiled header flag -function nf_pcheader(self, pcheaderfile, target) +function nf_pcheader(self, pcheaderfile) return {"-include", pcheaderfile} end -- make the c++ precompiled header flag -function nf_pcxxheader(self, pcheaderfile, target) +function nf_pcxxheader(self, pcheaderfile) return {"-include", pcheaderfile} end |
