Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #2193 (new enhancement)

Opened 4 years ago

Last modified 8 months ago

RFE: let me specify -mcpu for all ports

Reported by: joseph8s@… Owned by: macports-tickets@…
Priority: Low Milestone: MacPorts base enhancements
Component: base Version:
Keywords: Cc: mww@…, joseph8s@…, nox@…, ryandesign@…, afb@…
Port:

Description (last modified by jmpp@…) (diff)

There are a couple of things I've wanted in a distribution system for a some time now: 1) An ability to set the -mcpu flags (or build args) for all portfiles via some type of general config. 2) Also, some kinda threading so that once a build is fetched it starts the normal install process while another port is fetched. This is would be sweet for those of us who aren't blessed with a good connection and great for those of us who don't like having other dl's periodically boggled down by port.

Sincerely, Joseph Ates

Change History

Changed 19 months ago by pipping@…

  • milestone set to MacPorts 1.5

Changed 16 months ago by ryandesign@…

  • cc joseph8s@…, pipping@…, ryandesign@… added
  • priority changed from Blocker to Nice to have
  • summary changed from 2 build features that I'd love to see to RFE: let me specify -mcpu for all ports

One issue per ticket, please. Since there's already a ticket to pre-fetch portfiles in #2421, let's make this bug just about the ability to add -mcpu globally. Perhaps you could start by explaining what -mcpu is for and why anyone would want to specify it, because I don't know.

If you feel #2421 doesn't adequately address your second request (if you'd explicitly like to call out the threading request), either add to #2421 or make a new ticket, as you see fit.

Pipping, to which of the two requests was your MacPorts 1.5 milestone referring?

Changed 14 months ago by nox@…

  • cc nox@… added
  • priority changed from Nice to have to Low
  • version 1.0 deleted

-mcpu enables the compiler to fine tune its work to a specific CPU model or CPU architecture.

Changed 10 months ago by jmpp@…

  • cc mww@… added
  • description modified (diff)
  • milestone changed from MacPorts 1.5 to MacPorts base enhancements

Changed 10 months ago by mww@…

You can add optimization flags already, e.g.

port -d configure libgnugetopt configure.cflags="-O3 -march=nocona -ftree-vectorize"

to overwrite the standard -O2 optimization. Of course this can screw up the resulting binaries in fantastic ways...
Most ports honor a subset of configure.cflags, configure.cxxflags, configure.objcflags, configure.fflags, configure.f90flags and configure.fcflags -- if applicable.
If someone wants to make those options accessible via the config files: Have a look at portconfigure.tcl; it should be fairly easy;

Changed 8 months ago by afb@…

configure.march and configure.mtune added in r33599...

Changed 8 months ago by jmpp@…

  • cc afb@… added

Anders, are those new settings hackable from Portfiles, macports.conf or both?

-jmpp

Changed 8 months ago by afb@…

Not yet.

Changed 8 months ago by pipping@…

  • cc pipping@… removed
Note: See TracTickets for help on using tickets.