diff options
| author | ruki <[email protected]> | 2019-07-14 21:34:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-14 21:36:10 +0800 |
| commit | 893445dd37a571a7f33370b0970f046f30054b29 (patch) | |
| tree | 9b420494048bfd9325030a2a518eabd466b1b84f /xmake/modules/core/tools/nvcc.lua | |
| parent | 6061930a5c24f9b1ba717a9a39dafda02e8a802a (diff) | |
delay detect cuda
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
| -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 274d72a54..856e5c47c 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -22,6 +22,7 @@ import("core.base.option") import("core.project.config") import("core.project.project") +import("core.platform.platform") import("core.language.language") import("detect.tools.find_ccache") import("private.tools.nvcc.parse_deps") @@ -35,7 +36,7 @@ function init(self) end -- add -ccbin - local cu_ccbin = get_config("cu-ccbin") + local cu_ccbin = platform.tool("cu-ccbin") if cu_ccbin then self:add("cuflags", "-ccbin=" .. os.args(cu_ccbin)) end |
