Skip to content

Conversation

ehsan
Copy link

@ehsan ehsan commented Jul 17, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

src

Description of change

Mac OSX 10.9 has switched to using libc++ by default. libc++
provides a C++11 <type_traits> implementation, so we only need
to use the TR1 version when targetting OSX 10.8 or 10.7.

This patch fixes build failures when using -mmacosx-version-min=10.9 to build Node.

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jul 17, 2016
@bnoordhuis
Copy link
Member

LGTM but can you make sure the first line of the commit log is <= 50 characters?

@cjihrig
Copy link
Contributor

cjihrig commented Jul 18, 2016

LGTM

Mac OSX 10.9 has switched to using libc++ by default.  libc++
provides a C++11 <type_traits> implementation, so we only need
to use the TR1 version when targetting OSX 10.8 or 10.7.
@ehsan
Copy link
Author

ehsan commented Jul 21, 2016

LGTM but can you make sure the first line of the commit log is <= 50 characters?

Done!

@bnoordhuis
Copy link
Member

@addaleax
Copy link
Member

LGTM and CI was green, landing…

@addaleax
Copy link
Member

Landed in 34d58ce, thanks!

@addaleax addaleax closed this Jul 27, 2016
addaleax pushed a commit that referenced this pull request Jul 27, 2016
Mac OSX 10.9 has switched to using libc++ by default.  libc++
provides a C++11 <type_traits> implementation, so we only need
to use the TR1 version when targetting OSX 10.8 or 10.7.

PR-URL: #7778
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@cjihrig cjihrig mentioned this pull request Aug 8, 2016
cjihrig pushed a commit that referenced this pull request Aug 10, 2016
Mac OSX 10.9 has switched to using libc++ by default.  libc++
provides a C++11 <type_traits> implementation, so we only need
to use the TR1 version when targetting OSX 10.8 or 10.7.

PR-URL: #7778
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@cjihrig cjihrig mentioned this pull request Aug 11, 2016
@MylesBorins
Copy link
Contributor

this is not landing cleanly and blocked by some other util changes that I believe start with #6734

/cc @bnoordhuis

@bnoordhuis
Copy link
Member

I won't object to someone back-porting this patch but it's not necessary for v4.x releases, they are built with -mmacosx-version-min=10.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants