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

chore: Use as provided by mingw on Windows #387

Merged

Conversation

xxuejie
Copy link
Collaborator

@xxuejie xxuejie commented Oct 7, 2023

Previously, we were using clang (as a preprocessor) & yasm to transform assembly source code on Windows. On the one hand, this is really a hack solution to build a GAS-coupled assembly source file, on the other hand, yasm hasn't seen a proper release in years, making us believe that yasm is slowly becoming unmaintained. This change switches to use mingw when building the assembly source code, mingw is actively maintained now, which will reduce any problems we might run into.

Note that we only activate the new logic when target environment is msvc, for x86_64-pc-windows-gnu target, current logic would already work flawlessly.

Previously, we were using clang (as a preprocessor) & yasm to
transform assembly source code on Windows. On the one hand, this is
really a hack solution to build a GAS-coupled assembly source file, on
the other hand, yasm hasn't seen a proper release in years, making us
believe that yasm is slowly becoming unmaintained. This change
switches to use mingw when building the assembly source code, mingw is
actively maintained now, which will reduce any problems we might run
into.

Note that we only activate the new logic when target environment is
`msvc`, for `x86_64-pc-windows-gnu` target, current logic would
already work flawlessly.
@xxuejie xxuejie requested a review from mohanson October 7, 2023 07:48
@xxuejie xxuejie changed the title chore: Use as provided by mingw on Windows chore: Use gas provided by mingw on Windows Oct 7, 2023
@xxuejie xxuejie changed the title chore: Use gas provided by mingw on Windows chore: Use as provided by mingw on Windows Oct 7, 2023
@mohanson mohanson merged commit acb7767 into nervosnetwork:develop Oct 7, 2023
11 checks passed
@xxuejie xxuejie deleted the use-mingw-as-assembler-in-windows branch October 7, 2023 09:11
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.

2 participants