Skip to content

Commit

Permalink
Fix: Chop git suffix from LibLLVM::VERSION (crystal-lang#13699)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Müller <[email protected]>
  • Loading branch information
2 people authored and Blacksmoke16 committed Dec 11, 2023
1 parent 5c74586 commit dc0832a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm/lib_llvm.cr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ end
{% end %}
@[Link(ldflags: {{"`#{LibLLVM::LLVM_CONFIG} --libs --system-libs --ldflags#{" --link-static".id if flag?(:static)}#{" 2> /dev/null".id unless flag?(:win32)}`"}})]
lib LibLLVM
VERSION = {{`#{LibLLVM::LLVM_CONFIG} --version`.chomp.stringify}}
VERSION = {{`#{LibLLVM::LLVM_CONFIG} --version`.chomp.stringify.gsub(/git/, "")}}
BUILT_TARGETS = {{ (
env("LLVM_TARGETS") || `#{LibLLVM::LLVM_CONFIG} --targets-built`
).strip.downcase.split(' ').map(&.id.symbolize) }}
Expand Down

0 comments on commit dc0832a

Please sign in to comment.