Skip to content

Commit ad3d01c

Browse files
committed
work around ISPC edge case ICE
1 parent 946f89f commit ad3d01c

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ispc"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
authors = ["Will Usher <[email protected]>"]
55
homepage = "https://github.com/Twinklebear/ispc-rs"
66
documentation = "http://www.willusher.io/ispc-rs/ispc/"
@@ -24,6 +24,6 @@ exclude = [
2424
]
2525

2626
[dependencies]
27-
ispc_compile = { path = "./compile/", version = "1.0.1" }
27+
ispc_compile = { path = "./compile/", version = "1.0.2" }
2828
ispc_rt = { path = "./runtime/", version = "1.0.1" }
2929

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ compile time dependency
5252
build = "build.rs"
5353

5454
[dependencies]
55-
ispc = "1.0.1"
55+
ispc = "1.0.2"
5656

5757
[build-dependencies]
58-
ispc = "1.0.1"
58+
ispc = "1.0.2"
5959
```
6060

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

124124
[build-dependencies]
125125
ispc_rt = "1.0.1"
126-
ispc_compile = { "1.0.1", optional = true }
126+
ispc_compile = { "1.0.2", optional = true }
127127

128128
[features]
129129
ispc = ["ispc_compile"]

compile/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ispc_compile"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
authors = ["Will Usher <[email protected]>"]
55
homepage = "https://github.com/Twinklebear/ispc-rs"
66
documentation = "http://www.willusher.io/ispc-rs/ispc/"

compile/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,10 @@ impl Config {
406406
/// Build up list of basic args for each target, debug, opt level, etc.
407407
fn default_args(&self) -> Vec<String> {
408408
let mut ispc_args = Vec::new();
409-
if self.get_debug() {
409+
let opt_level = self.get_opt_level();
410+
if self.get_debug() && opt_level == 0 {
410411
ispc_args.push(String::from("-g"));
411412
}
412-
let opt_level = self.get_opt_level();
413413
if let Some(ref c) = self.cpu_target {
414414
ispc_args.push(c.to_string());
415415
// The ispc compiler crashes if we give -O0 and --cpu=generic,

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
//! build = "build.rs"
4747
//!
4848
//! [dependencies]
49-
//! ispc = "1.0.1"
49+
//! ispc = "1.0.2"
5050
//!
5151
//! [build-dependencies]
52-
//! ispc = "1.0.1"
52+
//! ispc = "1.0.2"
5353
//! ```
5454
//!
5555
//! Now you can use `ispc` to compile your code into a static library:
@@ -117,7 +117,7 @@
117117
//!
118118
//! [build-dependencies]
119119
//! ispc_rt = "1.0.1"
120-
//! ispc_compile = { "1.0.1", optional = true }
120+
//! ispc_compile = { "1.0.2", optional = true }
121121
//!
122122
//! [features]
123123
//! ispc = ["ispc_compile"]

0 commit comments

Comments
 (0)