Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #14182: OS X linker target mismatch warning #22746

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

ihnorton
Copy link
Member

@ihnorton ihnorton commented Jul 10, 2017

@ihnorton ihnorton changed the title fix #14812: OS X linker target mismatch warning fix #14182: OS X linker target mismatch warning Jul 10, 2017
@@ -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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the off chance that Julia works on PureDarwin (I assume no one has ever tried), perhaps this should be in its own #ifdef __APPLE__?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same difference

#elif defined(__APPLE__) && defined(__MACH__)
#define _OS_DARWIN_

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh cool. Don't mind me then.

@ararslan ararslan added domain:building Build system, or building Julia or its dependencies system:mac Affects only macOS labels Jul 11, 2017
@ararslan ararslan merged commit 8678b5e into JuliaLang:master Jul 11, 2017
@ihnorton ihnorton deleted the fix_osx_targetwarn branch September 19, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:building Build system, or building Julia or its dependencies system:mac Affects only macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linker warning on OSX -- wrong version number used?
3 participants