-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use openmp-sys instead of -fopenmp flag
linker-args do not propagate transitively (rust-lang/cargo#9554). Hence, -fopenmp would need to be set in every crate that uses this crate. The openmp-sys crate instead searches for the libraries and adds them as link-lib, which is picked up by crates using this crate.
- Loading branch information
Showing
3 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate openmp_sys; | ||
|
||
mod hptt { | ||
include!(concat!(env!("OUT_DIR"), "/bindings.rs")); | ||
} | ||
|