Skip to content

Commit

Permalink
Fix schema generation on alpine
Browse files Browse the repository at this point in the history
Alpine uses musl libc, which is identified as a different compilation
target by the Rust compiler. This target was not configured to use pgx's
magical linker script, so the symbols which the schema generator expects
to be present were not present.

Fixes #340
  • Loading branch information
JamesGuthrie committed Jan 4, 2022
1 parent 90db903 commit e7596a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cargo-pgx/src/templates/cargo_config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ linker = ".cargo/pgx-linker-script.sh"
[target.aarch64-unknown-linux-gnu]
linker = ".cargo/pgx-linker-script.sh"

[target.aarch64-unknown-linux-musl]
linker = ".cargo/pgx-linker-script.sh"

[target.x86_64-apple-darwin]
linker = ".cargo/pgx-linker-script.sh"

Expand Down

0 comments on commit e7596a1

Please sign in to comment.