issue #772: added an memmap replacement to support selinux

This commit is contained in:
Benson Chau
2019-05-23 16:14:45 -04:00
committed by Dan Gohman
parent bfc1468688
commit 6a19866da2
2 changed files with 80 additions and 11 deletions

View File

@@ -17,10 +17,15 @@ region = "2.0.0"
libc = { version = "0.2.42" }
errno = "0.2.4"
target-lexicon = { version = "0.4.0" }
memmap = { version = "0.7.0", optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["winbase", "memoryapi"] }
[features]
selinux-fix = ['memmap']
default = []
[dev-dependencies]
cranelift = { path = "../cranelift-umbrella", version = "0.34.0" }
cranelift-frontend = { path = "../cranelift-frontend", version = "0.34.0" }