Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/lang/bun/files/patch-scripts_build_deps_lolhtml.ts
49052 views
1
-- Disable nightly features and -Zbuild-std for lolhtml as FreeBSD ports use stable Rust.
2
3
--- scripts/build/deps/lolhtml.ts.orig 2026-05-14 00:17:32 UTC
4
+++ scripts/build/deps/lolhtml.ts
5
@@ -67,7 +67,7 @@ export const lolhtml: Dependency = {
6
7
// FreeBSD aarch64 is Tier 3 — no prebuilt std, so -Zbuild-std is
8
// required regardless of release/debug.
9
- if (cfg.freebsd && cfg.arm64) {
10
+ if (false && cfg.freebsd && cfg.arm64) {
11
spec.buildStd = true;
12
}
13
14
@@ -80,7 +80,7 @@ export const lolhtml: Dependency = {
15
// (linux-gnu, darwin, freebsd). musl/android keep the prebuilt-std
16
// -Cpanic=abort path.
17
const canBuildStdImmediateAbort =
18
- cfg.darwin || cfg.freebsd || (cfg.linux && cfg.abi !== "musl" && cfg.abi !== "android");
19
+ cfg.darwin || (false && cfg.freebsd) || (cfg.linux && cfg.abi !== "musl" && cfg.abi !== "android");
20
if (cfg.release && canBuildStdImmediateAbort) {
21
spec.buildStd = true;
22
spec.rustflags = [
23
24