rust-native: depend on llvm-native.dev for the LLVM headers
rustc_llvm compiles llvm-wrapper/*.cpp, which include "llvm/Config/llvm-config.h". Those headers ship in the .dev package, and rust-native listed only llvm-native and llvm-native.runtime, so the build failed with LLVMWrapper.h:6:10: fatal error: llvm/Config/llvm-config.h: No such file or directory even though the header was staged at llvm-native/target/<triple>/stage.dev/usr/include/. recipes/dev/rust declares the equivalent llvm21.dev for the same reason. Latent because rust-native was commented out of the config and had never been built.
This commit is contained in:
@@ -9,6 +9,13 @@ dependencies = [
|
||||
"openssl3",
|
||||
"llvm-native",
|
||||
"llvm-native.runtime",
|
||||
# rustc_llvm compiles llvm-wrapper/*.cpp, which #include
|
||||
# "llvm/Config/llvm-config.h". Those headers are staged by the .dev
|
||||
# package, so without it the build fails with
|
||||
# LLVMWrapper.h:6:10: fatal error: llvm/Config/llvm-config.h:
|
||||
# No such file or directory
|
||||
# recipes/dev/rust declares the equivalent llvm21.dev for the same reason.
|
||||
"llvm-native.dev",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
|
||||
Reference in New Issue
Block a user