Skip to content

Commit

Permalink
vendor builtins
Browse files Browse the repository at this point in the history
Signed-off-by: xermicus <cyrill@parity.io>
  • Loading branch information
xermicus committed May 24, 2024
1 parent 144d465 commit f5810fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/builtins/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ fn main() {
.read_to_string(&mut llvm_lib_dir)
.expect("llvm-config output should be utf8");

let lib_path = std::path::PathBuf::from(llvm_lib_dir.trim())
let mut lib_path = std::path::PathBuf::from(llvm_lib_dir.trim())
.join("linux")
.join(lib);
if !lib_path.exists() {
lib_path = std::path::PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()).join(lib);
}
let archive = fs::read(lib_path).expect("clang builtins for riscv32 not found");

let out_dir = env::var_os("OUT_DIR").expect("has OUT_DIR");
Expand Down
Binary file added crates/builtins/libclang_rt.builtins-riscv32.a
Binary file not shown.

0 comments on commit f5810fc

Please sign in to comment.