diff options
| author | OpportunityLiu <[email protected]> | 2019-07-12 14:45:40 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-12 14:45:40 +0800 |
| commit | 887d8d84223de495f0442baa9ae143c382747285 (patch) | |
| tree | 3b07770671d2dba5da98e67638f150685d2a1130 | |
| parent | 14fb0573a09d6bd1bd64ea16890ee7220c7f8244 (diff) | |
add break
| -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 59d87412e..274d72a54 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -266,6 +266,7 @@ function _compargv1(self, sourcefile, objectfile, flags) for _, flag in ipairs(flags) do if flag:find("-g", 1, true) then need_pdb = true + break end end if need_pdb then @@ -281,7 +282,7 @@ function _compargv1(self, sourcefile, objectfile, flags) -- parse the filename and arguments, .e.g "xcrun -sdk macosx clang" if not os.isexec(program) then argv = table.join(program:split("%s"), argv) - else + else table.insert(argv, 1, program) end return ccache, argv |
