That fixes issues when using directories (source or build) containing e.g. spaces.
It *should* not break anything as it's just adding quotes where they were missing.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
One minor question, otherwise LGTM.
libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp | ||
---|---|---|
16 | While you're at it, would it make sense to also guard %{cxx} and %{gdb}? |
Ok. For the moment I just fixed what was failing with my current setup but will fix cxx and gdb too.
libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp | ||
---|---|---|
16 | FYI, cxx was already correctly quoted. I added quoting to gdb. There are other issues in other parts of LLVM tho (e.g. one cannot build clang in a build dir with spaces) but I'll handle that in different patches. |
libcxx/test/CMakeLists.txt | ||
---|---|---|
85 | I believe that this doesn't work properly on Windows. The quoting rules on Windows are quite different. Using " instead of ' would work. However, depending on how this is used, CMake should be able to handle the quoting appropriately per platform. | |
libcxx/utils/libcxx/test/dsl.py | ||
98 | Please use pipes.quote for the argument quoting. | |
libcxx/utils/libcxx/test/format.py | ||
73–74 | Please use pipes.quote for the quoted parameters (and the same throughout the rest of the lit configuration). |
[Github PR transition cleanup]
Abandoning since this would likely need to be re-done almost entirely if rebased.
I believe that this doesn't work properly on Windows. The quoting rules on Windows are quite different. Using " instead of ' would work. However, depending on how this is used, CMake should be able to handle the quoting appropriately per platform.