File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1219,7 +1219,8 @@ impl Build {
1219
1219
cmd. push_cc_arg ( "-ffunction-sections" . into ( ) ) ;
1220
1220
cmd. push_cc_arg ( "-fdata-sections" . into ( ) ) ;
1221
1221
}
1222
- if self . pic . unwrap_or ( !target. contains ( "windows-gnu" ) ) {
1222
+ if self . pic . unwrap_or ( !target. contains ( "windows-gnu" ) &&
1223
+ !target. contains ( "uwp-gnu" ) ) {
1223
1224
cmd. push_cc_arg ( "-fPIC" . into ( ) ) ;
1224
1225
// PLT only applies if code is compiled with PIC support,
1225
1226
// and only for ELF targets.
@@ -1781,6 +1782,8 @@ impl Build {
1781
1782
"armv7-unknown-netbsd-eabihf" => Some ( "armv7--netbsdelf-eabihf" ) ,
1782
1783
"i586-unknown-linux-musl" => Some ( "musl" ) ,
1783
1784
"i686-pc-windows-gnu" => Some ( "i686-w64-mingw32" ) ,
1785
+ "i686-pc-uwp-gnu" => Some ( "i686-w64-mingw32" ) ,
1786
+ "x86_64-pc-uwp-gnu" => Some ( "x86_64-w64-mingw32" ) ,
1784
1787
"i686-unknown-linux-musl" => Some ( "musl" ) ,
1785
1788
"i686-unknown-netbsd" => Some ( "i486--netbsdelf" ) ,
1786
1789
"mips-unknown-linux-gnu" => Some ( "mips-linux-gnu" ) ,
You can’t perform that action at this time.
0 commit comments