# stage2: Enable compiler-rt when LLVM is existant · gitcafe/zig

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

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

Visibility: public

Requested revision: a6747d328cad831ceb07fb47cd0fa3647da21afb

Requested commit: a6747d328cad831ceb07fb47cd0fa3647da21afb

Commit: a6747d328cad831ceb07fb47cd0fa3647da21afb

Tree: 1d91b7a8b7df925681d798177c5c0c5f86799aa2

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
stage2: Enable compiler-rt when LLVM is existant

Rather than checking if the user wants to use LLVM for the current compilation,
check for the existance of LLVM as part of the compiler. This is temporarily,
until other backends gain the ability to compiler LLVM themselves.
This means that when a user passed `-fno-LLVM` we will use the native
backend for the user's code, but use LLVM for compiler-rt.

This also fixes emitting names for symbols in the Wasm linker,
by deduplicating symbol names when multiple symbols point the same object.

```

## Parents

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

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