Skip to content

Commit

Permalink
Fix wrong macro generation when LLVM --built-targets returns only one…
Browse files Browse the repository at this point in the history
… result (#3499)
  • Loading branch information
Serdar Dogruyol authored and ysbaddaden committed Nov 4, 2016
1 parent 00a9a8a commit 4040a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm/lib_llvm.cr
Expand Up @@ -21,7 +21,7 @@ end
@[Link(ldflags: "`{{LibLLVM::LLVM_CONFIG.id}} --libs --system-libs --ldflags 2> /dev/null`")]
lib LibLLVM
VERSION = {{`#{LibLLVM::LLVM_CONFIG} --version`.chomp.stringify}}
BUILT_TARGETS = {{ `#{LibLLVM::LLVM_CONFIG} --targets-built`.chomp.downcase.split(' ').map(&.id.symbolize) }}
BUILT_TARGETS = {{ `#{LibLLVM::LLVM_CONFIG} --targets-built`.strip.downcase.split(' ').map(&.id.symbolize) }}
end
{% end %}

Expand Down

0 comments on commit 4040a9f

Please sign in to comment.