PortGroup compiler_blacklist_versions 1.0
license {GPL-2+ Permissive}
maintainers {jeremyhu @jeremyhu}
description llvm-gcc42 is a gcc compiler frontend for llvm
long_description llvm-gcc42 integrates the LLVM optimizers and code \
generator with the GCC 4.2 parser. This allows LLVM to \
compile languages supported by the GCC compiler \
frontends, and provides high-fidelity drop-in \
compatibility with version 4.2 of GCC.
homepage http://opensource.apple.com/
master_sites http://opensource.apple.com/tarballs/llvmgcc42/
distname llvmgcc42-${version}
checksums md5 046629f7b3ce59bcb32b5116d29c27cd \
sha1 97b82b328780d1b4f261301dc084bb256172ee2a \
rmd160 90e496dc075ebd3daa088f818e52e7ecbb4a182e
depends_lib port:ld64 port:cctools
depends_run port:gcc_select
depends_skip_archcheck ld64 cctools
configure.cxx_stdlib libstdc++
default_variants-append +universal
supported_archs i386 x86_64
if {${os.platform} eq "darwin" && ${os.major} > 15} {
ui_error "${name} is not supported on macOS Sierra or newer."
return -code error {unsupported platform}
select.file ${filespath}/mp-llvm-gcc42
set srcroot ${worksrcpath}
set objroot ${workpath}/objroot
set symroot ${workpath}/symroot
# Don't compile with self
compiler.blacklist-append macports-llvm-gcc-4.2
# werror-*.patch : Fix compilation errors when building for x86_64
# incpath.patch : Don't prepend the -isysroot option argument to the compiler's own search paths
# driverdriver-num_infiles.patch : Fix linking with no input files (i.e. all static archives passed with -l...)