Skip to content

Commit

Permalink
Temporary fix for #1402. Proper fix is coming with a small refactor i…
Browse files Browse the repository at this point in the history
…n Compiler/CompileUnit/TargetMachine area.
  • Loading branch information
waj committed Sep 18, 2015
1 parent 3e05f80 commit 5bbf4d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/llvm/llvm.cr
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ module LLVM

def self.default_target_triple
chars = LibLLVM.get_default_target_triple
String.new(chars).tap { LibLLVM.dispose_message(chars) }
triple = String.new(chars).tap { LibLLVM.dispose_message(chars) }
if triple =~ /x86_64-apple-macosx|x86_64-apple-darwin/
"x86_64-apple-macosx"
else
triple
end
end

def self.to_io(chars, io)
Expand Down

0 comments on commit 5bbf4d1

Please sign in to comment.