Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
imikushin committed Nov 21, 2024
1 parent e301b48 commit 002445a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions crates/build/src/command/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,18 @@ pub(crate) fn get_program_build_args(args: &BuildArgs) -> Vec<String> {

/// Rust flags for compilation of C libraries.
pub(crate) fn get_rust_compiler_flags(args: &BuildArgs) -> String {
let rust_flags =
["-C", "passes=loweratomic", "-C", "link-arg=-Ttext=0x00200800", "-C", "panic=abort",
"-C", "strip=symbols", "-C", "opt-level=z"];
let rust_flags = [
"-C",
"passes=loweratomic",
"-C",
"link-arg=-Ttext=0x00200800",
"-C",
"panic=abort",
"-C",
"strip=symbols",
"-C",
"opt-level=z",
];
let rust_flags: Vec<_> =
rust_flags.into_iter().chain(args.rustflags.iter().map(String::as_str)).collect();
rust_flags.join("\x1f")
Expand Down

0 comments on commit 002445a

Please sign in to comment.