r201348 - [CMake] Disable libclangTests.exe on win32 for now.

NAKAMURA Takumi geek4civic at gmail.com
Thu Feb 13 20:02:47 PST 2014


2014-02-14 5:25 GMT+09:00 Brad King <brad.king at kitware.com>:
> On 2/13/2014 12:51 PM, NAKAMURA Takumi wrote:
>> [CMake] Disable libclangTests.exe on win32 for now.
>>
>> libclangTests.exe cannot find libclang.dll since it is not on $PATH.
>
> If both targets were to have the same RUNTIME_OUTPUT_DIRECTORY
> property then the .exe and .dll would be adjacent and then the
> tests will find the DLL at runtime.

No, unittest(s) are emitted to its build directory. See add_unittest()
in AddLLVM.cmake.

If Lit could add DLL's dir, standalone unittest would fail without PATH tweaks.

env PATH=$PWD/bin:$PATH tools/clang/unittests/libclang/libclangTests.exe



More information about the cfe-commits mailing list