Opened 12 years ago

Closed 12 years ago

#36299 closed enhancement (duplicate)

base should add a dependency on a compiler if it is being used

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: base Version: 2.1.2
Keywords: Cc:
Port:

Description

If configure.compiler is a port, base should automatically add a dependency on that port. This would avoid the need to add blocks like this (from wine):

# TODO: This should be done by base
if {${configure.compiler} == "apple-gcc-4.2"} {
    depends_build-append port:apple-gcc42
    depends_skip_archcheck-append apple-gcc42
}

Change History (4)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

We have many many many ports that use a gcc compiler. Some of those ports need gcc as a library dependency while others only need it as a build dependency. I don't know how base could know which kind of dependency to add.

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

It should always add a build dependency.

If it's gcc4X (not llvm-gcc42 and not apple-gcc4X), it should also add a lib dependency.

comment:3 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Also, if it's *clang* or apple-gcc42, it should skip_archcheck.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.