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

Respect %CC% on Windows #13376

Merged
merged 3 commits into from
Apr 26, 2023

Conversation

HertzDevil
Copy link
Contributor

Resolves #12988.

@HertzDevil HertzDevil added kind:feature topic:compiler platform:windows Windows support based on the MSVC toolchain / Win32 API labels Apr 21, 2023
Comment on lines 23 to 24
CC = ENV["CC"]? || "cc"
CL = "cl.exe"
CL = ENV["CC"]? || "cl.exe"
Copy link
Member

@straight-shoota straight-shoota Apr 24, 2023

Choose a reason for hiding this comment

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

I think the naming of these constants is a bit confusing when CL is ENV["CC"].
They are probably pretty unnecessary anyway. The single use is in linker_command. So it doesn't even make much sense to have a constant.

But I'm fine with merging this and refactor afterwards.
WDYT?

src/compiler/crystal/compiler.cr Outdated Show resolved Hide resolved
@straight-shoota straight-shoota removed this from the 1.9.0 milestone Apr 25, 2023
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
@straight-shoota straight-shoota added this to the 1.9.0 milestone Apr 25, 2023
@straight-shoota straight-shoota merged commit 535d08a into crystal-lang:master Apr 26, 2023
@HertzDevil HertzDevil deleted the feature/windows-cc branch April 26, 2023 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature platform:windows Windows support based on the MSVC toolchain / Win32 API topic:compiler
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Make linker configurable on Windows
3 participants