[cfe-commits] [PATCH] Add the resource directory to the search path for Driver::GetFilePath

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Mon Sep 5 15:17:38 PDT 2011


>> I think it is OK. I know it is hard to test the driver, but for this 
>> patch we might be able to check that there is as "/clang/" in the output 
>> of -print-file-name=include, no?
> 
> What if the user has configured clang with a custom resource directory
> (i.e. using --with-clang-resource-dir)?  I can't see a reliable way
> of extracting the resource directory from the driver, and I don't know
> if it's worth adding one just for the sake of this test.

That is true. I had forgot that it was configurable. I think the patch is OK as is then.

> Thanks,

Cheers,
Rafael



More information about the cfe-commits mailing list