summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSirLynix <[email protected]>2024-01-24 15:53:17 +0100
committerSirLynix <[email protected]>2024-01-24 15:53:17 +0100
commitce6096e45039628a279b132d4ee283e67728823e (patch)
tree967029688c7ee4637839b5e8462e2ec830790cb2
parent2642cdebef6642fb0fd69020a3b7084d62246b58 (diff)
Try to fix crlf to lf on other platforms too
Other platforms may be using a repository cloned from Windows
-rw-r--r--xmake/modules/private/action/require/impl/actions/patch_sources.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/patch_sources.lua b/xmake/modules/private/action/require/impl/actions/patch_sources.lua
index 5306fbb9a..afa0336d7 100644
--- a/xmake/modules/private/action/require/impl/actions/patch_sources.lua
+++ b/xmake/modules/private/action/require/impl/actions/patch_sources.lua
@@ -28,7 +28,7 @@ import("devel.git")
-- check sha256
function _check_sha256(patch_hash, patch_file)
local ok = (patch_hash == hash.sha256(patch_file))
- if not ok and is_host("windows") then
+ if not ok then
-- `git pull` maybe will replace lf to crlf in the patch text automatically on windows.
-- so we need to attempt to fix this sha256
--