Commit 7f49dc49 authored by Petr Hosek's avatar Petr Hosek
Browse files

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

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

Differential Revision: https://reviews.llvm.org/D73525
parent 89c2e733
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -878,7 +878,7 @@ endif()
function(cxx_add_config_site target)
  if (LIBCXX_NEEDS_SITE_CONFIG)
    if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")
      target_compile_options(${target} PUBLIC "/FI\"${site_config_path}\"")
      target_compile_options(${target} PUBLIC /FI "${site_config_path}")
    else()
      target_compile_options(${target} PUBLIC -include "${site_config_path}")
    endif()