Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Windows cross-compilation from Linux #295

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

zah
Copy link
Contributor

@zah zah commented Apr 27, 2023

Since DirSep matches the default separator of the target OS, it's not suitable for performing path operations during compile-time on the host OS.

The particular fix here solves the issue for cross-compiling a Windows build from a Linux host, but Nim seems to need a more general solution for detecting the host OS during compilation, so a host OS specific separator can be used when deriving paths from currentSourcePath.

@zah zah force-pushed the windows-cross-compilation branch from e6ed999 to 734ab4d Compare April 27, 2023 10:40
bindings/nim/kzg_abi.nim Outdated Show resolved Hide resolved
Since `DirSep` matches the default separator of the target OS, it's
not suitable for performing path operations during compile-time on
the host OS.

The particular fix here solves the issue for cross-compiling a Windows
build from a Linux host, but Nim seems to need a more general solution
for detecting the host OS during compilation, so a host OS specific
separator can be used in paths derived from `currentSourcePath`.
@zah zah force-pushed the windows-cross-compilation branch from 734ab4d to a31090c Compare April 27, 2023 13:14
Copy link
Member

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@asn-d6 asn-d6 merged commit 37048e8 into ethereum:main Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants