Skip to content

Support musl target (x86_64-unknown-linux-musl / aarch64-unknown-linux-musl) #265

@fengmk2

Description

@fengmk2

Context

vite-plus needs to ship NAPI bindings for Linux musl targets (linux-x64-musl, linux-arm64-musl) to support Alpine/Docker environments. However, the build fails because fspy_preload_unix produces a cdylib which is not supported on musl targets:

error: cannot produce cdylib for `fspy_preload_unix` as the target `x86_64-unknown-linux-musl` does not support these crate types

This blocks voidzero-dev/vite-plus#992 and voidzero-dev/vite-plus#995.

Expected

vite-task should be buildable for musl targets, either by:

  1. Conditionally disabling fspy_preload_unix cdylib on musl targets
  2. Providing an alternative implementation for musl
  3. Making the preload functionality optional

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions