mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Merge remote-tracking branch 'origin/trunk' into wasm-test-wasm3
This commit is contained in:
commit
f7d556b0d1
34 changed files with 212 additions and 162 deletions
|
@ -1,11 +1,13 @@
|
|||
use libloading::Library;
|
||||
use roc_build::link::{link, LinkType};
|
||||
use roc_builtins::bitcode;
|
||||
use roc_collections::all::MutMap;
|
||||
use roc_load::Threading;
|
||||
use roc_region::all::LineInfo;
|
||||
use tempfile::tempdir;
|
||||
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
use roc_collections::all::MutMap;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use roc_mono::ir::pretty_print_ir_symbols;
|
||||
|
||||
|
@ -30,11 +32,11 @@ pub fn helper(
|
|||
_leak: bool,
|
||||
lazy_literals: bool,
|
||||
) -> (String, Vec<roc_problem::can::Problem>, Library) {
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::path::PathBuf;
|
||||
|
||||
let dir = tempdir().unwrap();
|
||||
let filename = PathBuf::from("Test.roc");
|
||||
let src_dir = Path::new("fake/test/path");
|
||||
let src_dir = PathBuf::from("fake/test/path");
|
||||
let app_o_file = dir.path().join("app.o");
|
||||
|
||||
let module_src;
|
||||
|
|
|
@ -50,12 +50,10 @@ fn create_llvm_module<'a>(
|
|||
context: &'a inkwell::context::Context,
|
||||
target: &Triple,
|
||||
) -> (&'static str, String, &'a Module<'a>) {
|
||||
use std::path::Path;
|
||||
|
||||
let target_info = roc_target::TargetInfo::from(target);
|
||||
|
||||
let filename = PathBuf::from("Test.roc");
|
||||
let src_dir = Path::new("fake/test/path");
|
||||
let src_dir = PathBuf::from("fake/test/path");
|
||||
|
||||
let module_src;
|
||||
let temp;
|
||||
|
|
|
@ -69,7 +69,7 @@ fn compile_roc_to_wasm_bytes<'a, T: Wasm32Result>(
|
|||
_test_wrapper_type_info: PhantomData<T>,
|
||||
) -> Vec<u8> {
|
||||
let filename = PathBuf::from("Test.roc");
|
||||
let src_dir = Path::new("fake/test/path");
|
||||
let src_dir = PathBuf::from("fake/test/path");
|
||||
|
||||
let module_src;
|
||||
let temp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue