mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
Do not use -fPIC when compiling a UEFI application
This commit is contained in:
parent
a86759984c
commit
a774f93344
@ -204,7 +204,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool {
|
||||
/// This is not whether the target supports Position Independent Code, but whether the -fPIC
|
||||
/// C compiler argument is valid to Clang.
|
||||
pub fn supports_fpic(target: std.Target) bool {
|
||||
return target.os.tag != .windows;
|
||||
return target.os.tag != .windows and target.os.tag != .uefi;
|
||||
}
|
||||
|
||||
pub fn isSingleThreaded(target: std.Target) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user