Skip to content

Commit b57b5ac

Browse files
committed
Don't define extra flags for MSVC targets
1 parent b2e217d commit b57b5ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

psm/build.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,11 @@ fn main() {
5959

6060
if !msvc {
6161
cfg.flag("-xassembler-with-cpp");
62+
cfg.define(&*format!("CFG_TARGET_OS_{}", os), None);
63+
cfg.define(&*format!("CFG_TARGET_ARCH_{}", arch), None);
64+
cfg.define(&*format!("CFG_TARGET_ENV_{}", env), None);
6265
}
6366
cfg.file(asm);
6467

65-
cfg.define(&*format!("CFG_TARGET_OS_{}", os), None);
66-
cfg.define(&*format!("CFG_TARGET_ARCH_{}", arch), None);
67-
cfg.define(&*format!("CFG_TARGET_ENV_{}", env), None);
68-
6968
cfg.compile("libpsm_s.a");
7069
}

0 commit comments

Comments
 (0)