<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 16, 2015 at 5:30 PM, Adrian Prantl via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Oct 16, 2015, at 5:28 PM, Richard Smith <<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>> wrote:</div><br><div><span><stddef-module-usable.diff></span></div></blockquote></div><br><div>Getting there :-)</div><div><br></div><div><div style="margin:0px;line-height:normal;font-family:Menlo">In file included from <module-includes>:86:</div><div style="margin:0px;line-height:normal;font-family:Menlo">In file included from /Volumes/Data/llvm/_build.ninja.release/bin/../lib/clang/3.8.0/include/tgmath.h:29:</div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>/Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/math.h:309:10: </b><span style="color:#c33720"><b>fatal error: </b></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>      'type_traits' file not found</b></div><div style="margin:0px;line-height:normal;font-family:Menlo">#include <type_traits></div><span class=""><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><b>         ^</b></div><div style="margin:0px;line-height:normal;font-family:Menlo">In file included from test.cpp:2:</div><div style="margin:0px;line-height:normal;font-family:Menlo">In file included from /Volumes/Data/llvm/_build.ninja.release/bin/../include/c++/v1/cassert:21:</div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/assert.h:42:10: </b><span style="color:#c33720"><b>fatal error: </b></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><b>      could not build module 'Darwin'</b></div><div style="margin:0px;line-height:normal;font-family:Menlo">#include <sys/cdefs.h></div><div style="margin:0px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><b> ~~~~~~~~^</b></div><div style="margin:0px;line-height:normal;font-family:Menlo">2 errors generated.</div></span></div></div></blockquote><div><br></div><div>Great, looks like progress. Next you need a correct module map for libc++ that actually covers all of its headers :) Try the attached one. </div></div></div></div>