diff --git a/libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp b/libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp --- a/libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp +++ b/libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/db_deallocate.pass.cpp @@ -14,6 +14,8 @@ // T* polymorphic_allocator::deallocate(T*, size_t size) +// XFAIL: LIBCXX-WINDOWS-FIXME + int AssertCount = 0; #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : (void)::AssertCount++) diff --git a/libcxx/utils/ci/buildkite-pipeline.yml b/libcxx/utils/ci/buildkite-pipeline.yml --- a/libcxx/utils/ci/buildkite-pipeline.yml +++ b/libcxx/utils/ci/buildkite-pipeline.yml @@ -317,7 +317,18 @@ - exit_status: -1 # Agent was lost limit: 2 - - label: "Windows" + - label: "Windows (DLL)" + command: "bash libcxx/utils/ci/run-buildbot generic-win" + artifact_paths: + - "**/test-results.xml" + agents: + queue: "windows" + retry: + automatic: + - exit_status: -1 # Agent was lost + limit: 2 + + - label: "Windows (Static)" command: "bash libcxx/utils/ci/run-buildbot generic-win" artifact_paths: - "**/test-results.xml" diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot --- a/libcxx/utils/ci/run-buildbot +++ b/libcxx/utils/ci/run-buildbot @@ -473,7 +473,7 @@ generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Armv7Thumb-noexceptions.cmake" check-cxx-cxxabi ;; -generic-win) +generic-win*) clean # TODO: Clang-cl in MSVC configurations don't have access to compiler_rt # builtins helpers for int128 division. See @@ -490,6 +490,13 @@ # anyway), thus just disable the experimental library. Remove this # setting when cmake and the test driver does the right thing automatically. + CMAKE_FLAGS="" + if [ "${BUILDER}" = "generic-win-static" ]; then + CMAKE_FLAGS="$CMAKE_FLAGS -DLIBCXX_ENABLE_SHARED=NO" + else + CMAKE_FLAGS="$CMAKE_FLAGS -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=NO" + fi + echo "--- Generating CMake" cmake -S "${MONOREPO_ROOT}/libcxx" \ -B "${BUILD_DIR}" \ @@ -498,10 +505,10 @@ -DCMAKE_C_COMPILER=clang-cl \ -DCMAKE_CXX_COMPILER=clang-cl \ -DLLVM_LIT_ARGS="-sv --show-unsupported --xunit-xml-output test-results.xml" \ - -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=NO \ -DLIBCXX_ENABLE_FILESYSTEM=YES \ -DCMAKE_CXX_FLAGS="-D_LIBCPP_HAS_NO_INT128" \ - -DLIBCXX_TEST_COMPILER_FLAGS="-D_LIBCPP_HAS_NO_INT128" + -DLIBCXX_TEST_COMPILER_FLAGS="-D_LIBCPP_HAS_NO_INT128" \ + ${CMAKE_FLAGS} echo "+++ Running the libc++ tests" ${NINJA} -vC "${BUILD_DIR}" check-cxx ;;