don't use a global on the zig side (surgical linking can't do those yet)

This commit is contained in:
Folkert 2022-11-05 14:08:19 +01:00
parent 92cc120c7f
commit 94cc2971a3
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 43 additions and 24 deletions

View file

@ -2817,10 +2817,6 @@ pub fn build_exp_stmt<'a, 'ctx, 'env>(
if env.mode.runs_expects() {
bd.position_at_end(throw_block);
if let LlvmBackendMode::BinaryDev = env.mode {
crate::llvm::expect::read_env_shared_buffer(env);
}
match env.target_info.ptr_width() {
roc_target::PtrWidth::Bytes8 => {
clone_to_shared_memory(