diff options
author | Lemures Lemniscati <lemures.lemniscati@gmail.com> | 2021-03-17 08:09:39 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 20:09:39 -0300 |
commit | df45eed77cc26bc91c1917e3409d0599f78a2aed (patch) | |
tree | 6f834281f62e79f70dd4e316a90f1276f558a859 | |
parent | 247b21d1e221e27a837d09bf26f3e02383c748bb (diff) | |
download | luarocks-df45eed77cc26bc91c1917e3409d0599f78a2aed.tar.gz luarocks-df45eed77cc26bc91c1917e3409d0599f78a2aed.tar.bz2 luarocks-df45eed77cc26bc91c1917e3409d0599f78a2aed.zip |
Fix auto-detecting cygwin: src/luarocks/core/sysdetect.lua (#1264)
-rw-r--r-- | src/luarocks/core/sysdetect.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/core/sysdetect.lua b/src/luarocks/core/sysdetect.lua index 7358c29f..02b8a492 100644 --- a/src/luarocks/core/sysdetect.lua +++ b/src/luarocks/core/sysdetect.lua | |||
@@ -329,7 +329,7 @@ local function detect_pe(fd) | |||
329 | rdata_pos = bytes2number(rdata_pos, LITTLE) | 329 | rdata_pos = bytes2number(rdata_pos, LITTLE) |
330 | fd:seek("set", rdata_pos) | 330 | fd:seek("set", rdata_pos) |
331 | local data = fd:read(512) | 331 | local data = fd:read(512) |
332 | if data:match("cyggcc") then | 332 | if data:match("cygwin") or data:match("cyggcc") then |
333 | system = "cygwin" | 333 | system = "cygwin" |
334 | end | 334 | end |
335 | end | 335 | end |