diff options
| author | SirLynix <[email protected]> | 2023-08-01 08:49:48 +0200 |
|---|---|---|
| committer | SirLynix <[email protected]> | 2023-08-01 08:49:48 +0200 |
| commit | d21afdc15f81b84913ba6d8f19275d0afeec32b2 (patch) | |
| tree | 9401cd64b480b07493d993ce1597f1cc7c4d6825 /xmake/plugins | |
| parent | bdb656924022ef9f6ed88b5b39a6ff0f3b52386e (diff) | |
Exit once filter is resolved
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua | 5 | ||||
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua index 872e5c9fb..572ec0622 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua @@ -100,14 +100,15 @@ function _make_filter(filepath, target, vcxprojdir) if filter and filter == '.' then filter = nil end - break + goto found_filter end end -- stop once a rootdir matches if filter then - break + goto found_filter end end + ::found_filter:: end end if not filter and not is_plain then diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index 60ea5eecd..66537f059 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -349,14 +349,15 @@ function _make_filter(filepath, target, vcxprojdir) if filter and filter == '.' then filter = nil end - break + goto found_filter end end -- stop once a rootdir matches if filter then - break + goto found_filter end end + ::found_filter:: end end if not filter and not is_plain then |
