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

Skip building llvm_ext.cc on LLVM 18 or above #14357

Merged

Conversation

HertzDevil
Copy link
Contributor

It is still possible to build the empty object file by doing make llvm_ext explicitly, but that doesn't matter as LibLLVMExt's @[Link] annotation should never be used to populate the linker arguments anyway.

Comment on lines +83 to +87
ifneq ($(LLVM_VERSION),)
ifeq ($(shell test $(firstword $(subst ., ,$(LLVM_VERSION))) -ge 18; echo $$?),0)
DEPS =
endif
endif
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: Could we move this visually closer to the definition of DEPS to make it easier to reason about?
Or even put everything into a single conditional?

if (LLVM < 18)
  DEPS = $(LLVM_EXT_OBJ)
else
  DEPS =
endif

@straight-shoota straight-shoota added this to the 1.12.0 milestone Mar 11, 2024
@straight-shoota straight-shoota merged commit 2b0b506 into crystal-lang:master Mar 13, 2024
58 checks passed
@HertzDevil HertzDevil deleted the feature/makefile-skip-llvm-ext branch March 13, 2024 18:02
@crysbot
Copy link

crysbot commented Mar 26, 2024

This pull request has been mentioned on Crystal Forum. There might be relevant details there:

https://forum.crystal-lang.org/t/upcoming-1-12-0-release/6714/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants