Skip to content

Commit 3391246

Browse files
committed
Simplify model number handling
We never use it as a number, so make it a string to begin with.
1 parent 7f414fe commit 3391246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ mod c {
540540
}
541541

542542
for (model_number, model_name) in
543-
&[(1, "relax"), (2, "acq"), (3, "rel"), (4, "acq_rel")]
543+
&[("1", "relax"), ("2", "acq"), ("3", "rel"), ("4", "acq_rel")]
544544
{
545545
let library_name = format!(
546546
"liboutline_atomic_helper_{}_{}_{}.a",
@@ -552,7 +552,7 @@ mod c {
552552
cfg.include(&builtins_dir)
553553
.define(&format!("L_{}", instruction_type), None)
554554
.define("SIZE", size.to_string().as_str())
555-
.define("MODEL", model_number.to_string().as_str())
555+
.define("MODEL", model_number)
556556
.file(&outlined_atomics_file);
557557
cfg.compile(&library_name);
558558

0 commit comments

Comments
 (0)