aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_inject
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-01-08 17:17:46 +0100
committerGitHub <[email protected]>2021-01-08 17:17:46 +0100
commit078ae20c2c0aff93858eeb69d0c46dad4d997998 (patch)
tree38d2313c5bab64e2a84c90a219bd60ce6808f116 /zluda_inject
parent2c0e9b912fe341bd1e513614014fa43b666d257d (diff)
downloadZLUDA-078ae20c2c0aff93858eeb69d0c46dad4d997998.tar.gz
ZLUDA-078ae20c2c0aff93858eeb69d0c46dad4d997998.zip
Improve build procedure and instructions (#28)
Fixes issues pointed out in #27: * spirv_tools-sys was build in non-test profiles * By default ZLUDA dll has a wrong name * We relied on third-party OpenCL installation on Windows * We encouraged building debug configuration * We didn't provide build information for developers (cmake, python, submodules)
Diffstat (limited to 'zluda_inject')
-rw-r--r--zluda_inject/Cargo.toml2
-rw-r--r--zluda_inject/src/main.rs4
2 files changed, 2 insertions, 4 deletions
diff --git a/zluda_inject/Cargo.toml b/zluda_inject/Cargo.toml
index 8f1cde5..193c36e 100644
--- a/zluda_inject/Cargo.toml
+++ b/zluda_inject/Cargo.toml
@@ -5,7 +5,7 @@ authors = ["Andrzej Janik <[email protected]>"]
edition = "2018"
[[bin]]
-name = "zluda"
+name = "zluda_with"
path = "src/main.rs"
[target.'cfg(windows)'.dependencies]
diff --git a/zluda_inject/src/main.rs b/zluda_inject/src/main.rs
index f8c1921..201802b 100644
--- a/zluda_inject/src/main.rs
+++ b/zluda_inject/src/main.rs
@@ -4,10 +4,8 @@ mod win;
#[cfg(target_os = "windows")]
mod bin;
-use std::error::Error;
-
#[cfg(target_os = "windows")]
-fn main() -> Result<(), Box<dyn Error>> {
+fn main() -> Result<(), Box<dyn std::error::Error>> {
bin::main_impl()
}