# comp: reinstate \-fcompiler-rt when used with build-obj as output · gitcafe/zig

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

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

Visibility: public

Requested revision: 4e6f21e2cb2c557b5c019f4acf445665a26edcba

Requested commit: 4e6f21e2cb2c557b5c019f4acf445665a26edcba

Commit: 4e6f21e2cb2c557b5c019f4acf445665a26edcba

Tree: 85e65057cac0af3fd557a8bda6a1b4f88e60da48

Author: Jakub Konka

Committer: Andrew Kelley

## Message

````
comp: reinstate -fcompiler-rt when used with build-obj as output

When the following is specified

```
$ zig build-obj -fcompiler-rt example.zig
```

the resulting relocatable object file will have the compiler-rt
unconditionally embedded inside.

```
$ nm example.o
...
0000000012345678 W __truncsfhf2
...
```

````

## Parents

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

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