Skip to content

Commit 88e2147

Browse files
authored
Merge pull request #549 from jfgoog/build-rs
2 parents 8434a9f + 9964bb4 commit 88e2147

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::{collections::HashMap, env, sync::atomic::Ordering};
1+
use std::{collections::BTreeMap, env, sync::atomic::Ordering};
22

33
fn main() {
44
println!("cargo:rerun-if-changed=build.rs");
@@ -118,7 +118,7 @@ fn generate_aarch64_outlined_atomics() {
118118

119119
// Generate different macros for add/clr/eor/set so that we can test them separately.
120120
let sym_names = ["cas", "ldadd", "ldclr", "ldeor", "ldset", "swp"];
121-
let mut macros = HashMap::new();
121+
let mut macros = BTreeMap::new();
122122
for sym in sym_names {
123123
macros.insert(sym, gen_macro(sym));
124124
}
@@ -146,7 +146,7 @@ fn generate_aarch64_outlined_atomics() {
146146
let mut buf = String::new();
147147
for macro_def in macros.values().chain(std::iter::once(&cas16)) {
148148
buf += macro_def;
149-
buf += "}; }";
149+
buf += "}; }\n";
150150
}
151151
let dst = std::env::var("OUT_DIR").unwrap() + "/outlined_atomics.rs";
152152
std::fs::write(dst, buf).unwrap();

0 commit comments

Comments
 (0)