mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +00:00
in freestanding environment, assume gnu binutils
for now. soon LLD will free us from depending on system linkers.
This commit is contained in:
parent
5a86c04996
commit
d3f1889951
@ -687,8 +687,11 @@ static void construct_linker_job_darwin(LinkJob *lj) {
|
||||
|
||||
static void construct_linker_job(LinkJob *lj) {
|
||||
switch (lj->codegen->zig_target.os) {
|
||||
case ZigLLVM_UnknownOS:
|
||||
zig_unreachable();
|
||||
case ZigLLVM_UnknownOS: // freestanding
|
||||
// TODO we want to solve this problem with LLD, but for now let's
|
||||
// assume gnu binutils
|
||||
// http://lists.llvm.org/pipermail/llvm-dev/2017-February/109835.html
|
||||
return construct_linker_job_linux(lj);
|
||||
case ZigLLVM_Linux:
|
||||
if (lj->codegen->zig_target.arch.arch == ZigLLVM_hexagon) {
|
||||
zig_panic("TODO construct hexagon_TC linker job");
|
||||
|
Loading…
Reference in New Issue
Block a user