-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b23eb0
commit 1f61623
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
* File Authors : Aoran Zeng <[email protected]> | ||
* | Heng Guo <[email protected]> | ||
* Contributors : Peng Gao <[email protected]> | ||
* | | ||
* | Happy Game <[email protected]> | ||
* Created On : <2023-08-29> | ||
* Last Modified : <2024-09-29> | ||
* Last Modified : <2024-11-04> | ||
* | ||
* chsrc 框架 | ||
* ------------------------------------------------------------*/ | ||
|
@@ -442,11 +442,14 @@ measure_speed_for_url (void *url) | |
// https://github.com/RubyMetric/chsrc/issues/65 | ||
// curl (仅)在 Cygwin 上 -o nul 会把 nul 当做普通文件 | ||
// 为了践行 chsrc everywhere 的承诺,我们也考虑支持 Cygwin | ||
// 确保只在windows上运行 cygcheck,否则会生产nul文件 | ||
#if XY_On_Windows | ||
if (0==system ("cygcheck --version >nul 2>nul")) | ||
{ | ||
on_cygwin = true; | ||
os_devnull = "/tmp/chsrc-measure-downloaded"; | ||
} | ||
#endif | ||
|
||
// 我们用 —L,因为Ruby China源会跳转到其他地方 | ||
// npmmirror 也会跳转 | ||
|