summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-16 00:30:11 +0800
committerruki <[email protected]>2021-10-16 00:30:11 +0800
commitbbe1a5c2f7418d085304d1dcd0462cf4b2193497 (patch)
tree456e08f123d2de8c214b51220707f4d0534a2e6c
parentfceae198e53036fce3dd179cadabafe991c6ea0b (diff)
update changelog
-rw-r--r--CHANGELOG.md2
-rw-r--r--xmake/modules/private/tools/gcc/parse_deps.lua2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c3ea6812a..07a55c723 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@
### Changes
* [#1528](https://github.com/xmake-io/xmake/issues/1528): Check c++17/20 features
+* [#1729](https://github.com/xmake-io/xmake/issues/1729): Improve C++20 modules for clang/gcc/msvc
## v2.5.8
@@ -1111,6 +1112,7 @@
### 改进
* [#1528](https://github.com/xmake-io/xmake/issues/1528): 检测 c++17/20 特性
+* [#1729](https://github.com/xmake-io/xmake/issues/1729): 改进 C++20 modules 对 clang/gcc/msvc 的支持
## v2.5.8
diff --git a/xmake/modules/private/tools/gcc/parse_deps.lua b/xmake/modules/private/tools/gcc/parse_deps.lua
index 606e6c840..3b682753c 100644
--- a/xmake/modules/private/tools/gcc/parse_deps.lua
+++ b/xmake/modules/private/tools/gcc/parse_deps.lua
@@ -85,7 +85,7 @@ function main(depsdata)
end
else
includefile = includefile:replace(space_placeholder, ' ', plain)
- includefile = includefile:split("\n")[1]
+ includefile = includefile:split("\n", {plain = true})[1]
if #includefile > 0 then
includefile = _normailize_dep(includefile, projectdir)
if includefile then