<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"><!----></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>I finally managed to setup the migrator on my Windows. I tried <span style="font-size: 10pt;">
-isystem but it doesn't work either.</span></div>
<div><span style="font-size: 10pt;"><br>
</span></div>
<div><span style="font-size: 10pt;">I will try to find a working solution now that the migrator runs on Windows.</span></div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF285850" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Reid Kleckner [rnk@google.com]<br>
<b>Sent:</b> 26 August 2013 18:29<br>
<b>To:</b> papin_g<br>
<b>Cc:</b> cfe-dev@cs.uiuc.edu<br>
<b>Subject:</b> Re: [cfe-dev] Any differences between Windows and Linux header search?<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">On Mon, Aug 26, 2013 at 4:30 AM, papin_g <span dir="ltr"><<a href="mailto:guillaume.papin@epitech.eu" target="_blank">guillaume.papin@epitech.eu</a>></span> wrote:<br>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">Hi,<br>
<br>
I was wondering if there is any known differences on the way the header path search is performed between Windows and Unix like systems? Especially regarding angled #include <> resolution.<br>
Or maybe the difference can be with virtual file mapping between the two platforms.<br>
<br>
I'm working on the C++11 migrator where I made a class to modify #include directives but I have a hard time getting the unit tests to work on the Windows build bots.<br>
<br>
The IncludeDirectivesTest.cpp file available here: <a href="http://llvm-reviews.chandlerc.com/D1438#ca09f9a2" target="_blank">
http://llvm-reviews.chandlerc.com/D1438#ca09f9a2</a><br>
The buildbots errors are about the includes not being found, see :<br>
- <a href="http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/4176" target="_blank">
http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/4176</a><br>
- <a href="http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/3837" target="_blank">
http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/3837</a><br>
<br>
<br>
The test setups some virtual files (headers) using FileManager::getVirtualFile() and SourceManager::overrideFileContents().<br>
The virtual files are mapped in "$(pwd)/virtual/HEADER" and $(pwd) is added to the header search path with the option "-I".<br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>This is a completely random guess, but try -isystem $(pwd) if you're using angle bracket includes.  I don't know why the behavior of -I would differ from *nix to Windows.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">It looks like to me the test has no dependencies on the file system specifics but it breaks only on the  Windows build bots.<br>
<br>
</div>
</div>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>