# stage2: remove extra_lld_args · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7e23b3245a9bf6e002009e6c18c10a9995671afa)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7e23b3245a9bf6e002009e6c18c10a9995671afa

Requested commit: 7e23b3245a9bf6e002009e6c18c10a9995671afa

Commit: 7e23b3245a9bf6e002009e6c18c10a9995671afa

Tree: 484a5787656936680e39f2d59c4af6fc0b955644

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: remove extra_lld_args

This mechanism for sending arbitrary linker args to LLD has no place in
the Zig frontend, because our goal is for the frontend to understand all
the arguments and not treat linker args like a black box.

For example we have self-hosted linking in addition to LLD, so we want to
have the options make sense to both linking codepaths, not just the LLD one.

Passing -O linker args will now result in a warning that the arg does
nothing.

```

## Parents

- [fd369bcb0b67bde0072f1549be2fd0b34014703f](https://git.cafe/gitcafe/zig/commit/fd369bcb0b67bde0072f1549be2fd0b34014703f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7e23b3245a9bf6e002009e6c18c10a9995671afa?format=markdown)
