# Add cross-compilation support from MacOS to Windows \(\#13382\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7be1ffb9ecdd299ddbdad1d1301cf4fb9ea701cc

Requested commit: 7be1ffb9ecdd299ddbdad1d1301cf4fb9ea701cc

Commit: 7be1ffb9ecdd299ddbdad1d1301cf4fb9ea701cc

Tree: df8f8bc3601476bbe656873fd5b18a968ad8c6bd

Author: SELO

Committer: GitHub

## Message

```
Add cross-compilation support from MacOS to Windows (#13382)

- Modify `build.rs` to use environment variables instead of `cfg`
directive to make cross-compilation to Windows possible
- Make `embed-resource` a global build-dependency for cross-compilation

Release Notes:

- N/A
```

## Parents

- [93a5d0ca299f887d0f2cd84aabe348b9d3d2aa69](https://git.cafe/gitcafe/zed/commit/93a5d0ca299f887d0f2cd84aabe348b9d3d2aa69?format=markdown)

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