Skip to content

Commit 0632c93

Browse files
committed
Eliminate the symlinking of CBLAS/cmake
1 parent c291aa8 commit 0632c93

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

build.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
extern crate cmake;
22

33
use cmake::Config;
4-
use std::{env, fs, os};
5-
use std::path::{Path, PathBuf};
4+
use std::{env, fs};
5+
use std::path::Path;
66

77
macro_rules! feature(($name:expr) => (env::var(concat!("CARGO_FEATURE_", $name)).is_ok()));
88
macro_rules! switch(($condition:expr) => (if $condition { "ON" } else { "OFF" }));
@@ -14,12 +14,7 @@ fn main() {
1414
let lapacke = feature!("LAPACKE");
1515
if !feature!("SYSTEM") {
1616
suffix = "-netlib";
17-
let source = PathBuf::from("source");
18-
if !source.join("CBLAS").join("CMAKE").exists() {
19-
os::unix::fs::symlink(source.join("CBLAS").join("cmake"),
20-
source.join("CBLAS").join("CMAKE")).unwrap();
21-
}
22-
let output = Config::new(&source)
17+
let output = Config::new("source")
2318
.define("BUILD_TESTING", "OFF")
2419
.define("BUILD_SHARED_LIBS", switch!(kind == "dylib"))
2520
.define("CBLAS", switch!(cblas))

0 commit comments

Comments
 (0)