This is an archive of the discontinued LLVM Phabricator instance.

[Compiler-rt] Broken compiler-rt CMake configuring on Windows
ClosedPublic

Authored by iid_iunknown on Jan 19 2017, 9:32 AM.

Details

Summary

Hi Michal,

Would you be able to review this simple fix, please?

Since r291504 compiler-rt uses llvm-config --cmakedir to get the path to the LLVM CMake modules.
On Windows this option returns Windows style path with backslashes. CMake treats backslashes as beginning of an escaped character and thus fails to append the path to CMAKE_MODULE_PATH.

Diff Detail

Repository
rL LLVM

Event Timeline

iid_iunknown created this revision.Jan 19 2017, 9:32 AM
mgorny edited edge metadata.
mgorny added a subscriber: compnerd.

@compnerd, could you share your Windows knowledge? ;-)

mgorny accepted this revision.Jan 25 2017, 11:05 AM

Well, it doesn't seem to break anything for me on Linux and it resembles the code below, so I guess it's good to go.

This revision is now accepted and ready to land.Jan 25 2017, 11:05 AM

Well, it doesn't seem to break anything for me on Linux and it resembles the code below, so I guess it's good to go.

Yes, the patch just guarantees that the path is in the proper format for cmake, and leaves the path untouched if it is ok (which is currently the case for any non-Windows platform).

Thanks for reviewing this!

iid_iunknown closed this revision.Jan 26 2017, 10:27 AM