diff options
| author | ruki <[email protected]> | 2021-09-28 00:46:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-28 00:46:15 +0800 |
| commit | af03b0768205a1f9c7430f6e2a20e85811a13c4a (patch) | |
| tree | 461050732f33ef46a3c28367a8315e83cd573b4d | |
| parent | 7828621e2165455f90a0b4eecadddec0b7e6cdb0 (diff) | |
improve debug flags for nvcc
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index c28d8e271..d03a10865 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -59,7 +59,7 @@ function nf_symbol(self, level, target) -- debug? generate *.pdb file local flags = nil if level == "debug" then - flags = "-g -lineinfo" + flags = {"-g", "-lineinfo"} if is_plat("windows") then local host_flags = nil local symbolfile = nil @@ -82,11 +82,10 @@ function nf_symbol(self, level, target) else host_flags = "-Zi" end - flags = flags .. ' -Xcompiler "' .. host_flags .. '"' + table.insert(flags, "-Xcompiler") + table.insert(flags, host_flags) end end - - -- none return flags end |
