Skip to content

Commit

Permalink
Merge pull request #211 from moonbitlang/remove-ryu-flag-for-js
Browse files Browse the repository at this point in the history
remove ryu flag for js backend
  • Loading branch information
lijunchen authored Aug 27, 2024
2 parents 802b67a + 390133a commit c8af726
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 39 deletions.
8 changes: 1 addition & 7 deletions crates/moon/src/cli/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use moonutil::common::FileLock;
use moonutil::common::GeneratedTestDriver;
use moonutil::common::MooncOpt;
use moonutil::common::RunMode;
use moonutil::common::{MoonbuildOpt, TargetBackend, TestOpt};
use moonutil::common::{MoonbuildOpt, TestOpt};
use moonutil::dirs::mk_arch_mode_dir;
use moonutil::dirs::PackageDirs;
use moonutil::module::ModuleDB;
Expand Down Expand Up @@ -157,12 +157,6 @@ fn run_test_internal(
moonc_opt.build_opt.debug_flag = !cmd.release;
moonc_opt.link_opt.debug_flag = !cmd.release;

// TODO: remove this when we have a better way to handle this
if matches!(moonc_opt.link_opt.target_backend, TargetBackend::Js) {
moonc_opt.extra_build_opt.push("-ryu".into());
moonc_opt.extra_link_opt.push("-ryu".into());
}

let run_mode = RunMode::Test;
let target_dir = mk_arch_mode_dir(source_dir, target_dir, &moonc_opt, run_mode)?;
let _lock = FileLock::lock(&target_dir)?;
Expand Down
Loading

0 comments on commit c8af726

Please sign in to comment.