Skip to content

Regenerate binding based on LAPACK 3.9.0 #11

New issue

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

Merged
merged 4 commits into from
Sep 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lapack"]
path = lapack
url = https://github.com/Reference-LAPACK/lapack
16 changes: 16 additions & 0 deletions bindgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
set -eux

# - LAPACK routines in lapack.h has `.*_` naming because `LAPACK_GLOBAL` macro adds last '_'
# This script filters using this last '_'.
#
# - `char` in C header will convert into `::std::os::raw::c_char`, but we want to keep no_std.
# This is replaced by sed (FIXME is it possible using bindgen?).
bindgen \
--whitelist-function="^.*_$" \
--use-core \
wrapper.h \
| sed -e "s/::std::os::raw:://g" \
> src/lapack.rs
# Re-format due to sed
rustfmt src/lapack.rs
1 change: 1 addition & 0 deletions lapack
Submodule lapack added at 6acc99
Loading