Skip to content

Commit

Permalink
fix #14812: OS X linker target mismatch warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Jul 10, 2017
1 parent 00e74c3 commit ac0b227
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,7 @@ void jl_dump_native(const char *bc_fname, const char *unopt_bc_fname, const char
TheTriple.setObjectFormat(Triple::COFF);
#elif defined(_OS_DARWIN_)
TheTriple.setObjectFormat(Triple::MachO);
TheTriple.setOS(llvm::Triple::MacOSX);
#endif
std::unique_ptr<TargetMachine>
TM(jl_TargetMachine->getTarget().createTargetMachine(
Expand Down

0 comments on commit ac0b227

Please sign in to comment.