Skip to content

Commit

Permalink
static link c++ for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Arruda committed Jul 25, 2024
1 parent 426cd99 commit 349fa3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-so.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ jobs:
- name: Install MUSL toolchain
run: |
sudo apt-get install -y musl-dev musl-tools
ln -s "/usr/bin/g++" "/usr/bin/musl-g++"
rustup target add x86_64-unknown-linux-musl
- name: Build extensions
run: |
cd jyafn-ext
make install
make export
- name: Artifact update
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -77,7 +78,7 @@ jobs:
- name: Build extensions
run: |
cd jyafn-ext
make install
make export
- name: Artifact update
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions jyafn-ext/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ macro_rules! resource {
macro_rules! method {
($safe_interface:ident) => {
$crate::paste! {
#[allow(non_snake_case)]
pub unsafe extern "C" fn [<raw_method__ $safe_interface>](
resource_ptr: *const (),
input_ptr: *const u8,
Expand Down

0 comments on commit 349fa3c

Please sign in to comment.