authorgravatar for earowley23@gmail.comEric Rowley <earowley23@gmail.com> 2023-04-20 16:17:36-05:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-04-21 08:22:27+03:00
loga774f9334473822fd7c6c828dd3fb873788b2f72
treeb951aca86b170b204013988b9b46f4d9905528a6
parenta86759984c734d34a36bccda73baf60b19f1a633

Do not use -fPIC when compiling a UEFI application


1 files changed, 1 insertions(+), 1 deletions(-)

src/target.zig+1-1
......@@ -204,7 +204,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool {
204204/// This is not whether the target supports Position Independent Code, but whether the -fPIC
205205/// C compiler argument is valid to Clang.
206206pub fn supports_fpic(target: std.Target) bool {
207 return target.os.tag != .windows;
207 return target.os.tag != .windows and target.os.tag != .uefi;
208208}
209209
210210pub fn isSingleThreaded(target: std.Target) bool {