diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-10-08 07:55:44 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-10-16 22:25:20 +0200 |
| commit | 55fe86c57e5a069c0de56ff1ef2adfc80aa0ece7 (patch) | |
| tree | 4a4600b3924877f5081c2956489c0c59cf752785 /src/link | |
| parent | 140fb615a6a351fb397d6a538a4954a2229e90a8 (diff) | |
| download | zig-55fe86c57e5a069c0de56ff1ef2adfc80aa0ece7.tar.gz zig-55fe86c57e5a069c0de56ff1ef2adfc80aa0ece7.zip | |
std.Target: Remove isBpfFreestanding().
The only use of this has nothing to do with the OS tag.
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/Elf.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/link/Elf.zig b/src/link/Elf.zig index 0b1439ec80..dfb4a614fa 100644 --- a/src/link/Elf.zig +++ b/src/link/Elf.zig @@ -2045,9 +2045,7 @@ fn linkWithLLD(self: *Elf, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: s // copy when generating relocatables. Normally, we would expect `lld -r` to work. // However, because LLD wants to resolve BPF relocations which it shouldn't, it fails // before even generating the relocatable. - if (output_mode == .Obj and - (comp.config.lto or target.isBpfFreestanding())) - { + if (output_mode == .Obj and (comp.config.lto or target.cpu.arch.isBpf())) { // In this case we must do a simple file copy // here. TODO: think carefully about how we can avoid this redundant operation when doing // build-obj. See also the corresponding TODO in linkAsArchive. |
