mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
Compilation: Pass -fno-PIC to clang if PIC is disabled.
Let's not implicitly rely on whatever Clang's default is.
This commit is contained in:
parent
c9e67e71c1
commit
39abcc303c
1 changed files with 2 additions and 2 deletions
|
|
@ -5628,8 +5628,8 @@ pub fn addCCArgs(
|
|||
try argv.append("-mthumb");
|
||||
}
|
||||
|
||||
if (target_util.supports_fpic(target) and mod.pic) {
|
||||
try argv.append("-fPIC");
|
||||
if (target_util.supports_fpic(target)) {
|
||||
try argv.append(if (mod.pic) "-fPIC" else "-fno-PIC");
|
||||
}
|
||||
|
||||
try argv.ensureUnusedCapacity(2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue