[libcxx-commits] [PATCH] D101550: [libcxx] Use shell quoting for include flag on Windows
Petr Hosek via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 29 10:14:34 PDT 2021
phosek created this revision.
phosek added reviewers: ldionne, smeenai.
Herald added a subscriber: mgorny.
phosek requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
Without this, CMake deduplicates the /I flag breaking the build.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D101550
Files:
libcxx/include/CMakeLists.txt
Index: libcxx/include/CMakeLists.txt
===================================================================
--- libcxx/include/CMakeLists.txt
+++ libcxx/include/CMakeLists.txt
@@ -228,8 +228,8 @@
add_dependencies(cxx-headers generate-cxx-headers ${LIBCXX_CXX_ABI_HEADER_TARGET})
# TODO: Use target_include_directories once we figure out why that breaks the runtimes build
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")
- target_compile_options(cxx-headers INTERFACE /I "${LIBCXX_GENERATED_INCLUDE_DIR}"
- INTERFACE /I "${LIBCXX_GENERATED_INCLUDE_TARGET_DIR}")
+ target_compile_options(cxx-headers INTERFACE "SHELL:/I ${LIBCXX_GENERATED_INCLUDE_DIR}"
+ INTERFACE "SHELL:/I ${LIBCXX_GENERATED_INCLUDE_TARGET_DIR}")
else()
target_compile_options(cxx-headers INTERFACE -I${LIBCXX_GENERATED_INCLUDE_DIR}
INTERFACE -I${LIBCXX_GENERATED_INCLUDE_TARGET_DIR})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101550.341565.patch
Type: text/x-patch
Size: 1013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210429/b407e5af/attachment.bin>
More information about the libcxx-commits
mailing list