diff options
| author | ruki <[email protected]> | 2023-03-18 10:42:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-18 10:42:45 +0800 |
| commit | cd3204a943a247ca34a11c005a557cb913829c22 (patch) | |
| tree | 6389e75e93f6383300cb31fa374280c461786cbd | |
| parent | 284eaba7ddfcc57d508d29e90fd081ecf6a73081 (diff) | |
fix remove_files #3523
| -rw-r--r-- | xmake/core/project/target.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index dae799f9e..f30807e7c 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1536,7 +1536,8 @@ function _instance:sourcefiles() pattern = pattern:sub(3) end pattern = path.pattern(pattern) - if sourcefile:match(pattern) then + -- we need match whole pattern, https://github.com/xmake-io/xmake/issues/3523 + if sourcefile:match("^" .. pattern .. "$") then return true end end |
