Skip to content

Commit

Permalink
Add -march=native in builder
Browse files Browse the repository at this point in the history
  • Loading branch information
VirxEC committed May 7, 2024
1 parent 6617c8e commit 6514b40
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use miette::{IntoDiagnostic, Result};

fn main() -> Result<()> {
let mut builder = Builder::new("src/lib.rs", ["RocketSim/src/", "arenar/"])
.extra_clang_args(&["-std=c++20"])
.extra_clang_args(&["-std=c++20", "-march=native"])
.build()?;

if !cfg!(debug_assertions) || !cfg!(feature = "debug_logging") {
Expand All @@ -16,9 +16,6 @@ fn main() -> Result<()> {
}

builder
.compiler("clang-16")
.cpp(true)
.define("__SSE4_1__", "1")
.use_plt(false)
.flag_if_supported("-march=native")
.flag_if_supported("-std=c++20")
Expand Down

0 comments on commit 6514b40

Please sign in to comment.