| ... | @@ -204,7 +204,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool { | ... | @@ -204,7 +204,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool { |
| 204 | /// This is not whether the target supports Position Independent Code, but whether the -fPIC | 204 | /// This is not whether the target supports Position Independent Code, but whether the -fPIC |
| 205 | /// C compiler argument is valid to Clang. | 205 | /// C compiler argument is valid to Clang. |
| 206 | pub fn supports_fpic(target: std.Target) bool { | 206 | pub fn supports_fpic(target: std.Target) bool { |
| 207 | return target.os.tag != .windows; | 207 | return target.os.tag != .windows and target.os.tag != .uefi; |
| 208 | } | 208 | } |
| 209 | | 209 | |
| 210 | pub fn isSingleThreaded(target: std.Target) bool { | 210 | pub fn isSingleThreaded(target: std.Target) bool { |