We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenMP is special in that it requires -fopenmp to be passed to the linker (-lopenmp won't work).
-fopenmp
-lopenmp
cc.flag('-fopenmp') is passed only to the compiler, but not the linker. AFAIK cargo doesn't allow arbitrary linker flags.
cc.flag('-fopenmp')
Is is possible to use OpenMP with build scripts/cargo?
The text was updated successfully, but these errors were encountered:
OK, got it:
println!("cargo:rustc-link-lib=gomp"); // static needs gcc_eh too
~/.cargo/config
[target.x86_64-apple-darwin] linker = "gcc-7"
Sorry, something went wrong.
librna-sys
openmp
No branches or pull requests
OpenMP is special in that it requires
-fopenmp
to be passed to the linker (-lopenmp
won't work).cc.flag('-fopenmp')
is passed only to the compiler, but not the linker. AFAIK cargo doesn't allow arbitrary linker flags.Is is possible to use OpenMP with build scripts/cargo?
The text was updated successfully, but these errors were encountered: