Skip to content

Use CARGO_CFG_TARGET_FEATURE for crt-static check#1737

Merged
gwenn merged 3 commits intorusqlite:masterfrom
PaulWagener:crt-static-env
Sep 29, 2025
Merged

Use CARGO_CFG_TARGET_FEATURE for crt-static check#1737
gwenn merged 3 commits intorusqlite:masterfrom
PaulWagener:crt-static-env

Conversation

@PaulWagener
Copy link
Contributor

This change checks crt-static in the CARGO_CFG_TARGET_FEATURE environment variable instead of directly using the cfg!() macro. These can differ when cross-compiling from another platform.

This change checks crt-static in the CARGO_CFG_TARGET_FEATURE environment
variable instead of directly using the cfg!() macro. These can differ when
cross-compiling from another platform.
@PaulWagener
Copy link
Contributor Author

AppVeyor CI is currently failing on this, but this is not caused by the change.

Here is a PR with essentially nothing changed which also fails: #1738

@gwenn
Copy link
Collaborator

gwenn commented Sep 29, 2025

@gwenn gwenn merged commit eb9c538 into rusqlite:master Sep 29, 2025
13 of 14 checks passed
@gwenn
Copy link
Collaborator

gwenn commented Sep 29, 2025

Unrelated but it seems that static build is not tested at all:
https://github.com/rusqlite/rusqlite/actions/runs/17890744296/job/51521906565
vs

if: matrix.os == 'x86_64-pc-windows-msvc'

matrix.os == 'x86_64-pc-windows-msvc'

should be

matrix.target == 'x86_64-pc-windows-msvc'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants