Skip to content

Commit 47f2d2b

Browse files
builder: add Macports legacy software options (#26691)
1 parent dfd5d71 commit 47f2d2b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

vlib/v/builder/cc.v

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,12 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
619619
if os.uname().machine == 'Power Macintosh' {
620620
user_darwin_ppc = true
621621
}
622+
623+
// Mac OS 10.4 and older requires Macports legacy software to build programs
624+
if user_darwin_version <= 8 {
625+
ccoptions.args << '-I' + @VEXEROOT + '/thirdparty/legacy/include/LegacySupport/'
626+
ccoptions.args << @VEXEROOT + '/thirdparty/legacy/lib/libMacportsLegacySupport.a'
627+
}
622628
}
623629
ccoptions.debug_mode = v.pref.is_debug
624630
ccoptions.guessed_compiler = v.pref.ccompiler

0 commit comments

Comments
 (0)