[cfe-dev] Running Tool In VS2015

Daniel Dilts via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 15 09:02:28 PDT 2016


So, that should eliminate the warning that I am seeing, right?  It does
nothing about having to add the -I option, am I correct?

On Thu, Sep 15, 2016 at 8:25 AM, Reid Kleckner <rnk at google.com> wrote:

> BTW, it should be fixed in r281550.
>
> On Wed, Sep 14, 2016 at 9:49 PM, Kim Gräsman via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> Hi Daniel,
>>
>> Looks like you could work around it by building to a bin/
>> subdirectory, i.e. C:\MyTool\Release\bin instead of just
>> C:\MyTool\Release. That way the (presumably-buggy) -resource-dir will
>> at least point to the right path.
>>
>> - Kim
>>
>> On Wed, Sep 14, 2016 at 1:12 AM, Daniel Dilts via cfe-dev
>> <cfe-dev at lists.llvm.org> wrote:
>> > When building my tool against Clang 3.8.0 and running it in VS2013 it
>> worked
>> > perfectly (once I started building the clang-headers project).
>> >
>> > Along comes VS2015 and I have to upgrade to Clang 3.9.0 since the VS2015
>> > headers now use an intrinsic that wasn't supported prior to 3.9.0.  This
>> > unexpectedly broke my tool and caused the tool to generate the
>> following new
>> > warning:
>> >
>> > warning : unknown argument ignored in clang-cl:
>> > '-resource-dir=C:\MyTool\Release\..\lib\clang\3.9.0'
>> >
>> > This warning seems odd to me, since the -resource-dir argument is added
>> by
>> > Clang.  Also, it references the parent directory of the directory that
>> the
>> > clang-headers project copies necessary include files to.
>> >
>> > As I have been experimenting with getting my tool to work again it has
>> > become evident that somewhere between 3.8.0 and 3.9.0 the directory
>> where
>> > the clang-headers project copies header file to has been removed from
>> the
>> > set of include directories for a tool (at least on Windows...).  By
>> adding
>> > -IC:\MyTool\Release\..\lib\clang\3.9.0\include to my command line I
>> have
>> > been able to get my tool to work again.
>> >
>> > Does anyone know why Clang was changed so that this directory is no
>> longer
>> > included by default?  Also, is there some other fix that I am missing?
>> >
>> > _______________________________________________
>> > cfe-dev mailing list
>> > cfe-dev at lists.llvm.org
>> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>> >
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160915/75a292cf/attachment.html>


More information about the cfe-dev mailing list