diff options
| author | ruki <[email protected]> | 2026-01-13 22:34:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-13 22:34:19 +0800 |
| commit | a07a54f06c1341f9082b967d0c8205b214cc04e3 (patch) | |
| tree | 2c254456ca540468b44231af8500c5b24360aa84 /xmake/modules/core/tools/cl/parse_include.lua | |
| parent | 08bc9d63514a9eb28401aef5726ab9870c6b270e (diff) | |
improve nvcc warningscl
Diffstat (limited to 'xmake/modules/core/tools/cl/parse_include.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl/parse_include.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xmake/modules/core/tools/cl/parse_include.lua b/xmake/modules/core/tools/cl/parse_include.lua index 4ca3803e1..3541c28df 100644 --- a/xmake/modules/core/tools/cl/parse_include.lua +++ b/xmake/modules/core/tools/cl/parse_include.lua @@ -90,11 +90,8 @@ end -- has include note? function has_include_note(line) local note = _g.note - if note then - if line:startswith(note) then - return note - end - return + if note and line:startswith(note) then + return note end local notes = get_include_notes() |
