[MacPorts] #53634: clang++-mp-4.0 -stdlib=macports-libstdc++ should be in C++11 mode by default

MacPorts noreply at macports.org
Tue May 9 17:38:50 UTC 2017


#53634: clang++-mp-4.0 -stdlib=macports-libstdc++ should be in C++11 mode by
default
------------------------+----------------------
  Reporter:  mojca      |      Owner:  mojca
      Type:  defect     |     Status:  assigned
  Priority:  Low        |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-4.0  |
------------------------+----------------------

Comment (by kencu):

 Yeah, I'm not so sure about that now that I look at it -- this would be
 happening while the build line is being parsed, so would it work to push
 back the `std=` onto the build line again? Would it get re-parsed?

 Perhaps you'd have to find out what `-std=c++11` invokes when being
 parsed, and do that. Is setting this enough, I wonder:
 {{{
 Opts.CPlusPlus11 = Std.isCPlusPlus11()
 }}}

 There might be more to it.

 And then what if there is some other `-std=` line on the build line?
 Presumably that should win.

 Enough speculation, I guess. Have to dig in and try different things to
 sort this out.

--
Ticket URL: <https://trac.macports.org/ticket/53634#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list