Skip to content

Commit bc8c692

Browse files
committed
Merge pull request #32 from arrayfire/bugfix/build
resolve osx build error with opencl and fix f77 issue
2 parents 7c2e386 + 4928b90 commit bc8c692

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ fn run_cmake_command(conf: &Config, build_dir: &std::path::PathBuf) {
278278
_ => fail("Invalid FFT upstream option set"),
279279
};
280280
match conf.cpu_blas_type.as_ref() {
281-
"LAPACKE" => { blas_options.push(format!("-DUSE_CPU_F77_BLAS:BOOL={}", "ON")); },
281+
"LAPACKE" => { blas_options.push(format!("-DUSE_CPU_F77_BLAS:BOOL={}", "OFF")); },
282282
"MKL" => { blas_options.push(format!("-DUSE_CPU_MKL:BOOL={}", "ON")); },
283283
_ => fail("Invalid BLAS upstream option set"),
284284
};
@@ -356,7 +356,9 @@ fn blob_backends(conf: &Config, build_dir: &std::path::PathBuf) -> (Vec<String>,
356356
}
357357
} else if conf.use_backend == "opencl" {
358358
backends.push(("afopencl".to_string()));
359-
backends.push("OpenCL".to_string());
359+
if ! cfg!(target_os = "macos"){
360+
backends.push("OpenCL".to_string());
361+
}
360362
if cfg!(windows) {
361363
backend_dirs.push(format!("{}\\lib\\x64", conf.opencl_sdk));
362364
} else {

0 commit comments

Comments
 (0)