Skip to content

Commit e1a527e

Browse files
authored
fixed canonicalisation of include path in windows (#35)
1 parent dedb29e commit e1a527e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pqcrypto-internals/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ links = "pqcrypto_internals"
1111

1212
[build-dependencies]
1313
cc = { version = "1.0", features = ["parallel"] }
14+
dunce = "1.0.2"
1415

1516
[dependencies]
1617
getrandom = "0.2"

pqcrypto-internals/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
extern crate cc;
2+
extern crate dunce;
23

34
use std::env;
45
use std::path::Path;
56

67
fn main() {
7-
let includepath = Path::new("include").canonicalize().unwrap();
8+
let includepath = dunce::canonicalize(Path::new("include")).unwrap();
89
println!("cargo:includepath={}", includepath.to_str().unwrap());
910

1011
let cfiledir = Path::new("cfiles");

0 commit comments

Comments
 (0)