Skip to content

src: Only use the TR1 type_traits when targeting OSX<10.9

Rodrigo Muino Tomonari requested to merge github/fork/ehsan/osx109 into master
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.

Merge request reports

Loading