File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
### Changes
12
12
13
+ * [ #5507 ] ( https://github.com/xmake-io/xmake/issues/5507 ) : Use treeless to improve git.clone
14
+
13
15
### Bugs fixed
14
16
15
17
* [ #4750 ] ( https://github.com/xmake-io/xmake/issues/4750 ) : Fix compile_commands generator for ` xmake tests `
1875
1877
1876
1878
### 改进
1877
1879
1880
+ * [ #5507 ] ( https://github.com/xmake-io/xmake/issues/5507 ) : 改进 git clone 下载速度
1881
+
1878
1882
### Bugs 修复
1879
1883
1880
1884
* [ #4750 ] ( https://github.com/xmake-io/xmake/issues/4750 ) : 修复 compile_commands 生成器,支持 ` xmake tests `
Original file line number Diff line number Diff line change @@ -783,8 +783,8 @@ function _instance:cachedir()
783
783
--
784
784
local name = self :displayname ():lower ():gsub (" ::" , " _" ):gsub (" #" , " _" )
785
785
local version_str = self :version_str ()
786
- if self : is_thirdparty () then
787
- -- strip `>= <=`
786
+ -- strip invalid characters on windows, e.g. `>= <=`
787
+ if is_host ( " windows " ) then
788
788
version_str = version_str :gsub (" [>=<]" , " " )
789
789
end
790
790
if self :is_local () then
@@ -812,8 +812,8 @@ function _instance:installdir(...)
812
812
end
813
813
local version_str = self :version_str ()
814
814
if version_str then
815
- if self : is_thirdparty () then
816
- -- strip `>= <=`
815
+ -- strip invalid characters on windows, e.g. `>= <=`
816
+ if is_host ( " windows " ) then
817
817
version_str = version_str :gsub (" [>=<]" , " " )
818
818
end
819
819
installdir = path .join (installdir , version_str )
You can’t perform that action at this time.
0 commit comments