Skip to content

Commit

Permalink
Merge pull request #38 from Devolutions/fix-windows-build-dependencies
Browse files Browse the repository at this point in the history
Fix windows build dependencies
  • Loading branch information
MathieuMorrissette authored Oct 29, 2019
2 parents 8ec4c83 + da62acf commit 91f48ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions devolutionscrypto/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.'cfg(windows)']
rustflags = ["-Ctarget-feature=+crt-static"]
2 changes: 1 addition & 1 deletion devolutionscrypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "devolutionscrypto"
version = "0.1.7"
version = "0.1.8"
authors = ["Philippe Dugre <pdugre@devolutions.net>", "Mathieu Morrissette <mmorrissette@devolutions.net>"]
edition = "2018"
readme = "../README.md"
Expand Down
1 change: 0 additions & 1 deletion wrappers/csharp/GeneratePackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
assembly_manifest = assembly_manifest.replace("||VERSION||", version)

if sys.argv[1] == "WIN":

# Compile a DevolutionsCrypto.dll in 32 bit and 64 bit for windows platform
print("Finding csc compiler...")
csc_path = ""
Expand Down
2 changes: 1 addition & 1 deletion wrappers/csharp/Native.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static Native()

string path = Path.GetDirectoryName(assembly.Location);

path = Path.Combine(path, IntPtr.Size == 8 ? "x64" : "x86");
path = Path.Combine(path, Environment.Is64BitProcess ? "x64" : "x86");

bool ok = SetDllDirectory(path);

Expand Down

0 comments on commit 91f48ba

Please sign in to comment.