Skip to content

Commit

Permalink
Merge pull request #122 from maleadt/tb/macos_triple
Browse files Browse the repository at this point in the history
Use the Julia triple, not the LLVM one.
  • Loading branch information
maleadt authored Nov 13, 2018
2 parents 80d41f5 + 001404e commit 63e6d84
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ julia:

matrix:
allow_failures:
- julia: 0.7
- julia: nightly
os: osx

notifications:
Expand Down
1 change: 0 additions & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function main()
occursin("LLVM", basename(lib))
end
if isempty(libllvm_paths)
@show Libdl.dllist()
build_error("""
Cannot find the LLVM library loaded by Julia.
Please use a version of Julia that has been built with USE_LLVM_SHLIB=1 (like the official binaries).
Expand Down
2 changes: 1 addition & 1 deletion examples/Kaleidoscope/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function run(mod::LLVM.Module, entry::String)
end

function write_objectfile(mod::LLVM.Module, path::String)
host_triple = LLVM.triple()
host_triple = Sys.MACHINE # LLVM.triple() might be wrong (see LLVM.jl#108)
host_t = LLVM.Target(host_triple)
LLVM.TargetMachine(host_t, host_triple) do tm
LLVM.emit(tm, mod, LLVM.API.LLVMObjectFile, path)
Expand Down

0 comments on commit 63e6d84

Please sign in to comment.