Skip to content

Commit 6f740e9

Browse files
committed
Run rustfmt
1 parent d507553 commit 6f740e9

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

build.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ macro_rules! switch(($condition:expr) => (if $condition { "ON" } else { "OFF" })
99

1010
fn main() {
1111
let mut suffix = "";
12-
let kind = if feature!("STATIC") { "static" } else { "dylib" };
12+
let kind = if feature!("STATIC") {
13+
"static"
14+
} else {
15+
"dylib"
16+
};
1317
let cblas = feature!("CBLAS");
1418
let lapacke = feature!("LAPACKE");
1519
if !feature!("SYSTEM") {
1620
suffix = "-netlib";
1721
let output = Config::new("source")
18-
.define("BUILD_TESTING", "OFF")
19-
.define("BUILD_SHARED_LIBS", switch!(kind == "dylib"))
20-
.define("CBLAS", switch!(cblas))
21-
.define("LAPACKE_WITH_TMG", switch!(lapacke))
22-
.define("CMAKE_INSTALL_LIBDIR", "lib")
23-
.build();
22+
.define("BUILD_TESTING", "OFF")
23+
.define("BUILD_SHARED_LIBS", switch!(kind == "dylib"))
24+
.define("CBLAS", switch!(cblas))
25+
.define("LAPACKE_WITH_TMG", switch!(lapacke))
26+
.define("CMAKE_INSTALL_LIBDIR", "lib")
27+
.build();
2428
let output = output.join("lib");
2529
rename(&output, "blas", suffix);
2630
rename(&output, "lapack", suffix);

0 commit comments

Comments
 (0)