This is an archive of the discontinued LLVM Phabricator instance.

[CMake][libcxx] Don't wrap __config_site path in quotes on Windows
ClosedPublic

Authored by phosek on Jan 27 2020, 7:32 PM.

Details

Summary

This is failing to compile on Windows because clang-cl is trying to
use the path with quotes, dropping them resolves the issue.

Diff Detail

Event Timeline

phosek created this revision.Jan 27 2020, 7:32 PM
smeenai added inline comments.
libcxx/CMakeLists.txt
881
target_compile_options(${target} PUBLIC /FI "${site_config_path}")

is more consistent with the below case, if it works.

ldionne accepted this revision.Jan 29 2020, 5:12 PM
ldionne added inline comments.
libcxx/CMakeLists.txt
881

Either way works for me. @phosek Please try using this suggestion, otherwise commit as-is.

This revision is now accepted and ready to land.Jan 29 2020, 5:12 PM
phosek updated this revision to Diff 241339.Jan 29 2020, 7:36 PM
phosek marked 3 inline comments as done.
phosek added inline comments.
libcxx/CMakeLists.txt
881

I tested it locally and it seems to be working so I'll use the suggested version.

This revision was automatically updated to reflect the committed changes.