# stage2: add LLVM codegen windows support to the self-hosted compiler · gitcafe/zig

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

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

Visibility: public

Requested revision: b059bb84b85ca7914d617cae7c4960a798412ea5

Requested commit: b059bb84b85ca7914d617cae7c4960a798412ea5

Commit: b059bb84b85ca7914d617cae7c4960a798412ea5

Tree: 99808267690ba037765d6e8431d58f17ba71462f

Author: Timon Kruiper

Committer: Timon Kruiper

## Message

````
stage2: add LLVM codegen windows support to the self-hosted compiler

The following example generates a valid `main.exe`:
`zig build-exe main.zig -fLLVM -target x86_64-windows-gnu --subsystem console`

```
export fn wWinMainCRTStartup() noreturn {
    foo();
    exit();
}

fn foo() void {}

fn exit() noreturn {
    unreachable;
}
```

````

## Parents

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

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