fixes to make default.nix work

This commit is contained in:
Anton-4 2022-08-01 16:50:38 +02:00
parent 11fd062a86
commit 43f9e2a7c3
No known key found for this signature in database
GPG key ID: A13F4A6E21141925
11 changed files with 100 additions and 69 deletions

View file

@ -307,8 +307,11 @@ pub fn build_file<'a>(
host_input_path.as_path().to_str().unwrap(),
app_o_file.to_str().unwrap(),
];
let str_host_obj_path = bitcode::get_builtins_host_obj_path();
if matches!(opt_level, OptLevel::Development) {
inputs.push(bitcode::BUILTINS_HOST_OBJ_PATH);
inputs.push(&str_host_obj_path);
}
let (mut child, _) = // TODO use lld