Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions vlib/v/builder/cc.v
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
if os.uname().machine == 'Power Macintosh' {
user_darwin_ppc = true
}

// Mac OS 10.4 and older requires Macports legacy software to build programs
if user_darwin_version <= 8 {
vexe_path := v.pref.vroot
ccoptions.args << '-I' + vexe_path + '/thirdparty/legacy/include/LegacySupport/'
ccoptions.args << vexe_path + '/thirdparty/legacy/lib/libMacportsLegacySupport.a'
Comment thread
programmingkidx marked this conversation as resolved.
Outdated
}
}
ccoptions.debug_mode = v.pref.is_debug
ccoptions.guessed_compiler = v.pref.ccompiler
Expand Down
Loading