This is an archive of the discontinued LLVM Phabricator instance.

[WIP] Enable std module import tests on Darwin
AbandonedPublic

Authored by aprantl on Apr 26 2019, 5:16 PM.

Details

Reviewers
teemperor
Summary

Note that this does not fully work yet, but gets further than before. Where it previously failed with

AssertionError: False is not True : Command 'expr std::abs(-42)
Error output:
error: 'ctype.h' file not found
error: could not build module 'std'
error: while importing modules:

it now fails with

error: module 'std' is needed but has not been provided, and implicit use of module files is disabled
error: while importing modules:
'__config' file not found with <angled> include; use "quotes" instead
'__config' file not found with <angled> include; use "quotes" instead
'__config' file not found with <angled> include; use "quotes" instead
'__config' file not found with <angled> include; use "quotes" instead
'__config' file not found with <angled> include; use "quotes" instead
'__config' file not found with <angled> include; use "quotes" instead

Raphael, am I on the right track or is this a bad idea?

Diff Detail

Event Timeline

Adding the SDK sysroot there would affect all paths (even user paths that are not in the sysroot) from what I can tell, not just /usr/include. I think the way we implemented this on Linux is via GetSystemIncludeDirectories, see D61240.

Also thanks for looking into this!

teemperor resigned from this revision.Sep 25 2019, 6:37 AM

This doesn't seem necessary anymore :)

aprantl abandoned this revision.Nov 22 2019, 10:01 AM