diff options
| author | Aurorabili <[email protected]> | 2024-11-04 10:02:26 +0000 |
|---|---|---|
| committer | Aurorabili <[email protected]> | 2024-11-04 10:02:26 +0000 |
| commit | f01ed0a230e0bbf93e53551df27d8c6170a689c4 (patch) | |
| tree | bada2a1bc61a447cd0db1506f441c51ba1712058 /xmake/modules/core/tools/nvcc.lua | |
| parent | 1c689fd23324695a9256b6d0ed5187f0c9f0c692 (diff) | |
fix: #5777 Remove -G and -lineinfo and add them in mode.debug and mode.profile respectively
Signed-off-by: Aurorabili <[email protected]>
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index a7ef324f3..fdb305631 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -52,7 +52,9 @@ function nf_symbol(self, level, opt) -- debug? generate *.pdb file local flags = nil if level == "debug" then - flags = {"-G", "-g", "-lineinfo"} + -- #5777: '--device-debug (-G)' overrides '--generate-line-info (-lineinfo)' in nvcc + -- remove '-G' and '-lineinfo' and add them in mode.debug and mode.profile respectively + flags = {"-g"} if self:is_plat("windows") then local host_flags = nil local symbolfile = nil |
