# llvm: Pass EmitOptions to libzigcpp by pointer\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 5723fcaac1b473acee2fb3f5ea5486527eac5359

Requested commit: 5723fcaac1b473acee2fb3f5ea5486527eac5359

Commit: 5723fcaac1b473acee2fb3f5ea5486527eac5359

Tree: 1f16033f5935491182cce49844b6108ca18b9613

Author: Alex Rønne Petersen

Committer: Andrew Kelley

## Message

```
llvm: Pass EmitOptions to libzigcpp by pointer.

Passing it by value means that bringup on new architectures is harder for no
real benefit. Passing it by pointer allows to get the compiler running without
needing to figure out the C calling convention details first. This manifested in
practice on LoongArch, for example.

```

## Parents

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

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