File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -1690,11 +1690,15 @@ impl Build {
1690
1690
for directory in self . include_directories . iter ( ) {
1691
1691
cmd. arg ( "-I" ) . arg ( directory) ;
1692
1692
}
1693
- for & ( ref key, ref value) in self . definitions . iter ( ) {
1694
- if let Some ( ref value) = * value {
1695
- cmd. arg ( & format ! ( "-D{}={}" , key, value) ) ;
1696
- } else {
1697
- cmd. arg ( & format ! ( "-D{}" , key) ) ;
1693
+ if target. contains ( "aarch64" ) || target. contains ( "arm" ) {
1694
+ println ! ( "cargo:warning=The MSVC ARM assemblers do not support -D flags" ) ;
1695
+ } else {
1696
+ for & ( ref key, ref value) in self . definitions . iter ( ) {
1697
+ if let Some ( ref value) = * value {
1698
+ cmd. arg ( & format ! ( "-D{}={}" , key, value) ) ;
1699
+ } else {
1700
+ cmd. arg ( & format ! ( "-D{}" , key) ) ;
1701
+ }
1698
1702
}
1699
1703
}
1700
1704
You can’t perform that action at this time.
0 commit comments