Skip to content

vp_js_runtime: add FreeBSD to the supported OS set - #2552

Open
mfechner wants to merge 1 commit into
voidzero-dev:mainfrom
mfechner:freebsd-support
Open

vp_js_runtime: add FreeBSD to the supported OS set#2552
mfechner wants to merge 1 commit into
voidzero-dev:mainfrom
mfechner:freebsd-support

Conversation

@mfechner

Copy link
Copy Markdown

vp_js_runtime's Os enum only lists Linux, Darwin, and Windows, and Os::current() has a compile_error! for any other target. FreeBSD is a legitimate target for the vp binary (the rest of the toolchain builds fine), so add a FreeBSD variant and route it through the same tar.gz + bin/node + bin/ conventions the other unix platforms use.

Note: managed Node.js currently has no official FreeBSD build, so vp env downloads on FreeBSD will 404 at runtime. That is a distribution gap, not a code gap, and does not block the vp binary itself from compiling or running. If/when Node.js publishes FreeBSD artifacts, only the platform_string() mapping in providers/node.rs needs to be updated (FreeBSD -> "freebsd" instead of "linux").

Fixes #2537

vp_js_runtime's Os enum only lists Linux, Darwin, and Windows, and
Os::current() has a compile_error! for any other target.  FreeBSD is a
legitimate target for the `vp` binary (the rest of the toolchain builds
fine), so add a FreeBSD variant and route it through the same tar.gz +
bin/node + bin/ conventions the other unix platforms use.

Note: managed Node.js currently has no official FreeBSD build, so
`vp env` downloads on FreeBSD will 404 at runtime.  That is a
distribution gap, not a code gap, and does not block the `vp` binary
itself from compiling or running.  If/when Node.js publishes FreeBSD
artifacts, only the platform_string() mapping in providers/node.rs
needs to be updated (FreeBSD -> "freebsd" instead of "linux").

Signed-off-by: Matthias Fechner <mfechner@FreeBSD.org>
@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit a7fc3c7
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a8c22db9ec8b300087bd549

freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request Aug 24, 2026
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.

Support for FreeBSD

1 participant