Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 17, 2022
1 parent fed888f commit 66b0cfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/swc_plugin_runner/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,11 @@ impl PluginModuleCache {
/// Creates an instnace of [Store].
///
/// This function exists because we need to disable simd.
#[allow(unused_mut)]
fn new_store() -> Store {
// Use empty enumset to disable simd.
let mut set = EnumSet::new();
#[cfg(target_arch = "x86_64")]
set.insert(CpuFeature::SSE2);
let target = Target::new(Triple::host(), set);

Expand Down

0 comments on commit 66b0cfb

Please sign in to comment.