libclc: keep llvm-native in dependencies so the cook-tree builds it
Moving llvm-native fully to dev-dependencies removed it from the cook set: the cookbook's cook-tree (src/cook/tree.rs) only follows `dependencies` when resolving --with-package-deps, so llvm-native was staged-but-never-built and libclc failed installing a nonexistent stage.pkgar. Cooking llvm-native (main) via `dependencies` produces all its subpackage pkgars; stage .dev + .runtime (host static libs/cmake + host clang) as dev-dependencies.
This commit is contained in:
@@ -40,9 +40,16 @@ template = "custom"
|
||||
# is absent and the build errors "host clang not found". We deliberately do NOT
|
||||
# pull llvm21.dev (the Redox-cross LLVM) — it would drop a SECOND, conflicting
|
||||
# usr/lib/cmake/llvm into the sysroot and find_package would pick the wrong one.
|
||||
dependencies = []
|
||||
dev-dependencies = [
|
||||
# NOTE: llvm-native (main) MUST be in `dependencies`, not dev-dependencies:
|
||||
# the cookbook's cook-tree (src/cook/tree.rs) only follows `dependencies` when
|
||||
# resolving what to COOK (--with-package-deps), so a dev-only dep is staged but
|
||||
# never built -> "stage.pkgar No such file or directory". Cooking llvm-native
|
||||
# (main) produces ALL its subpackage pkgars (main + .dev + .runtime); we then
|
||||
# stage the two we need as dev-dependencies (build-only).
|
||||
dependencies = [
|
||||
"llvm-native",
|
||||
]
|
||||
dev-dependencies = [
|
||||
"llvm-native.dev",
|
||||
"llvm-native.runtime",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user