History

Don't use ASM on windows for Sha1 as it fails to build there.

The Assembly doesn't seem to work on windows. ``` Caused by: process didn't exit successfully: `D:\a\gitoxide\gitoxide\target\debug\build\sha1-asm-13acdb875e822f42\build-script-build` (exit code: 1) --- stdout TARGET = Some("x86_64-pc-windows-msvc") OPT_LEVEL = Some("0") HOST = Some("x86_64-pc-windows-msvc") CC_x86_64-pc-windows-msvc = None CC_x86_64_pc_windows_msvc = None HOST_CC = None CC = None CFLAGS_x86_64-pc-windows-msvc = None CFLAGS_x86_64_pc_windows_msvc = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") DEBUG = Some("true") running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-W4" "-c" "-FoD:\\a\\gitoxide\\gitoxide\\target\\debug\\build\\sha1-asm-0fd8f5c0305292c2\\out\\src/x64.o" "-c" "src/x64.S" cargo:warning=cl : Command line warning D9024 : unrecognized source file type 'src/x64.S', object file assumed cargo:warning=cl : Command line warning D9027 : source file 'src/x64.S' ignored cl : Command line warning D9021 : no action performed exit code: 0 AR_x86_64-pc-windows-msvc = None AR_x86_64_pc_windows_msvc = None HOST_AR = None AR = None running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX64\\x64\\lib.exe" "-out:D:\\a\\gitoxide\\gitoxide\\target\\debug\\build\\sha1-asm-0fd8f5c0305292c2\\out\\libsha1.a" "-nologo" "D:\\a\\gitoxide\\gitoxide\\target\\debug\\build\\sha1-asm-0fd8f5c0305292c2\\out\\src/x64.o" LINK : fatal error LNK1181: cannot open input file 'D:\a\gitoxide\gitoxide\target\debug\build\sha1-asm-0fd8f5c0305292c2\out\src\x64.o' exit code: 1181 ```

Sebastian Thiel committed 5 years ago

Commit ba1fb7a1 parent 83002df8 files · +28 −24Browse files

Showing the changes to git-commitgraph (1 of 8 files). Show all

Unified · Split

git-commitgraph/Cargo.toml+1−1
@@ -16,7 +16,7 @@ doctest = false · 15 unmodified lines
1616 serde1 = ["serde", "git-hash/serde1", "bstr/serde1"]
1717
1818 [dependencies]
19−git-features = { version = "^0.15.0", path = "../git-features", features = ["sha1"] }
19+git-features = { version = "^0.15.0", path = "../git-features", features = ["rustsha1"] }
2020 git-hash = { version = "^0.4.0", path = "../git-hash" }
2121
2222 bstr = { version = "0.2.13", default-features = false, features = ["std"] }