Skip to content

Commit

Permalink
work around ISPC edge case ICE
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinklebear committed Jan 23, 2019
1 parent 946f89f commit ad3d01c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ispc"
version = "1.0.1"
version = "1.0.2"
authors = ["Will Usher <[email protected]>"]
homepage = "https://github.com/Twinklebear/ispc-rs"
documentation = "http://www.willusher.io/ispc-rs/ispc/"
Expand All @@ -24,6 +24,6 @@ exclude = [
]

[dependencies]
ispc_compile = { path = "./compile/", version = "1.0.1" }
ispc_compile = { path = "./compile/", version = "1.0.2" }
ispc_rt = { path = "./runtime/", version = "1.0.1" }

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ compile time dependency
build = "build.rs"

[dependencies]
ispc = "1.0.1"
ispc = "1.0.2"

[build-dependencies]
ispc = "1.0.1"
ispc = "1.0.2"
```

Now you can use `ispc` to compile your code into a static library:
Expand Down Expand Up @@ -123,7 +123,7 @@ ispc_rt = "1.0.1"

[build-dependencies]
ispc_rt = "1.0.1"
ispc_compile = { "1.0.1", optional = true }
ispc_compile = { "1.0.2", optional = true }

[features]
ispc = ["ispc_compile"]
Expand Down
2 changes: 1 addition & 1 deletion compile/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ispc_compile"
version = "1.0.1"
version = "1.0.2"
authors = ["Will Usher <[email protected]>"]
homepage = "https://github.com/Twinklebear/ispc-rs"
documentation = "http://www.willusher.io/ispc-rs/ispc/"
Expand Down
4 changes: 2 additions & 2 deletions compile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,10 @@ impl Config {
/// Build up list of basic args for each target, debug, opt level, etc.
fn default_args(&self) -> Vec<String> {
let mut ispc_args = Vec::new();
if self.get_debug() {
let opt_level = self.get_opt_level();
if self.get_debug() && opt_level == 0 {
ispc_args.push(String::from("-g"));
}
let opt_level = self.get_opt_level();
if let Some(ref c) = self.cpu_target {
ispc_args.push(c.to_string());
// The ispc compiler crashes if we give -O0 and --cpu=generic,
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
//! build = "build.rs"
//!
//! [dependencies]
//! ispc = "1.0.1"
//! ispc = "1.0.2"
//!
//! [build-dependencies]
//! ispc = "1.0.1"
//! ispc = "1.0.2"
//! ```
//!
//! Now you can use `ispc` to compile your code into a static library:
Expand Down Expand Up @@ -117,7 +117,7 @@
//!
//! [build-dependencies]
//! ispc_rt = "1.0.1"
//! ispc_compile = { "1.0.1", optional = true }
//! ispc_compile = { "1.0.2", optional = true }
//!
//! [features]
//! ispc = ["ispc_compile"]
Expand Down

0 comments on commit ad3d01c

Please sign in to comment.