Skip to content

Commit

Permalink
gcc10: use correct triples on powerpc*
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 9, 2024
1 parent 4c25d90 commit 396f883
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lang/gcc10/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,18 @@ license_noconflict gmp mpfr ppl libmpc zlib

set major [lindex [split ${version} .-] 0]

proc gcc_arch {arch} {
switch ${arch} {
arm64 {return aarch64}
ppc64 {return powerpc64}
ppc {return powerpc}
default {return ${arch}}
}
}

platform darwin {
configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
set gcc_triple [gcc_arch ${build_arch}]-apple-darwin${os.major}
configure.pre_args-append --build=${gcc_triple}
}

set gcc_configure_langs {c c++ objc obj-c++ lto fortran}
Expand Down

0 comments on commit 396f883

Please sign in to comment.