From c3641d38d2544c63cf65632bcd24a29b78dc0fbd Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Mon, 31 Oct 2022 16:11:59 -0400 Subject: [PATCH] Add targets for repl_test --- Cargo.lock | 1 + crates/repl_test/Cargo.toml | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 616f8e192d..805257dd15 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3258,6 +3258,7 @@ version = "0.0.1" dependencies = [ "indoc", "lazy_static", + "roc_build", "roc_cli", "roc_repl_cli", "roc_test_utils", diff --git a/crates/repl_test/Cargo.toml b/crates/repl_test/Cargo.toml index ae21768bc7..d2467b74f8 100644 --- a/crates/repl_test/Cargo.toml +++ b/crates/repl_test/Cargo.toml @@ -16,6 +16,7 @@ indoc = "1.0.7" strip-ansi-escapes = "0.1.1" wasmer-wasi = "2.2.1" +roc_build = { path = "../compiler/build" } roc_repl_cli = {path = "../repl_cli"} roc_test_utils = {path = "../test_utils"} @@ -27,4 +28,18 @@ wasmer = { version = "2.2.1", default-features = false, features = ["singlepass" wasmer = { version = "2.2.1", default-features = false, features = ["cranelift", "universal"] } [features] -wasm = [] +default = ["target-aarch64", "target-x86_64", "target-wasm32"] +wasm = ["target-wasm32"] +target-arm = ["roc_build/target-arm", "roc_repl_cli/target-arm"] +target-aarch64 = ["roc_build/target-aarch64", "roc_repl_cli/target-aarch64"] +target-x86 = ["roc_build/target-x86", "roc_repl_cli/target-x86"] +target-x86_64 = ["roc_build/target-x86_64", "roc_repl_cli/target-x86_64"] +target-wasm32 = ["roc_build/target-wasm32", "roc_repl_cli/target-wasm32"] + +target-all = [ + "target-aarch64", + "target-arm", + "target-x86", + "target-x86_64", + "target-wasm32" +]