add all roc_ functions like roc_alloc instead of just builtins

This commit is contained in:
Brendan Hansknecht 2022-07-22 19:13:06 -07:00
parent 35a452a69b
commit 29b5e11515
No known key found for this signature in database
GPG key ID: A2E3B0B6E483038E

View file

@ -420,8 +420,8 @@ fn build_proc<'a, B: Backend<'a>>(
}
}
Relocation::LinkedFunction { offset, name } => {
// If the symbol is an undefined zig builtin, we need to add it here.
if output.symbol_id(name.as_bytes()) == None && name.starts_with("roc_builtins.") {
// If the symbol is an undefined roc function, we need to add it here.
if output.symbol_id(name.as_bytes()) == None && name.starts_with("roc_") {
let builtin_symbol = Symbol {
name: name.as_bytes().to_vec(),
value: 0,