summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/common.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-07 20:34:27 +0800
committerGitHub <[email protected]>2023-01-07 20:34:27 +0800
commit2c2c67e67ba3076ff7d418af4b27e7381aa7269a (patch)
tree02a589aaee540fa1b4e6cb63cf970f9d3d762522 /xmake/rules/c++/modules/modules_support/common.lua
parent3ea7041a0a776ab90791365432b65c37616350df (diff)
Update common.lua
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/common.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/common.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua
index e1ae05393..5d3907dfb 100644
--- a/xmake/rules/c++/modules/modules_support/common.lua
+++ b/xmake/rules/c++/modules/modules_support/common.lua
@@ -109,8 +109,8 @@ function parse_meta_info(target, metafile)
end
local file = path.basename(metafile)
- for _, ext in pairs({".mpp", ".mxx", ".cppm", ".ixx"}) do
- if os.exists(path.join(path.directory(metafile), file .. ext)) then
+ for _, ext in ipairs({".mpp", ".mxx", ".cppm", ".ixx"}) do
+ if os.isfile(path.join(path.directory(metafile), file .. ext)) then
file = file .. ext
break
end
@@ -716,4 +716,4 @@ function install_module_target(target)
end
end
end
-end \ No newline at end of file
+end