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

Error when trying to build aarch64 with LLVM 12 and below #15018

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/compiler/crystal/compiler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,13 @@ module Crystal
end

private def codegen(program, node : ASTNode, sources, output_filename)
{% if LibLLVM::IS_LT_130 %}
if @codegen_target.architecture == "aarch64"
stderr.puts "Error: Target #{@codegen_target} requires a Crystal compiler built with LLVM 13 or a later version."
exit 1
end
{% end %}

llvm_modules = @progress_tracker.stage("Codegen (crystal)") do
program.codegen node, debug: debug, frame_pointers: frame_pointers,
single_module: @single_module || @cross_compile || !@emit_targets.none?
Expand Down
Loading