Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 10, 2024
1 parent 6fe0ff0 commit 37c6bb4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,15 @@ jobs:
strategy:
fail-fast: false
matrix:
os:
- windows-2019
include:
- os: windows-2019
- compiler: msvc
os: windows-2019
simd-level: AVX2
title: AMD64 Windows 2019 C++17 AVX2
title: AMD64 Windows 2019 C++ MSVC AVX2
- compiler: clang-cl
os: windows-2019
simd-level: AVX2
title: AMD64 Windows 2019 C++ clang-cl AVX2
env:
ARROW_BOOST_USE_SHARED: OFF
ARROW_BUILD_BENCHMARKS: ON
Expand Down Expand Up @@ -354,15 +357,18 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.ccache-info.outputs.cache-dir }}
key: cpp-ccache-windows-${{ env.CACHE_VERSION }}-${{ hashFiles('cpp/**') }}
restore-keys: cpp-ccache-windows-${{ env.CACHE_VERSION }}-
key: cpp-ccache-windows-${{ matrix.compiler }}-${{ env.CACHE_VERSION }}-${{ hashFiles('cpp/**') }}
restore-keys: cpp-ccache-windows-${{ matrix.compiler }}-${{ env.CACHE_VERSION }}-
env:
# We can invalidate the current cache by updating this.
CACHE_VERSION: "2022-09-13"
- name: Build
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
if ${{ matrix.compiler }}==clang-cl (
set ARROW_CMAKE_ARGS=-DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
)
bash -c "ci/scripts/cpp_build.sh $(pwd) $(pwd)/build"
- name: Test
shell: bash
Expand Down
8 changes: 6 additions & 2 deletions cpp/cmake_modules/SetupCxxFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,12 @@ if(WIN32)
endforeach()
endif()

# Support large object code
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} /bigobj")
message("XXX: ${CMAKE_CXX_COMPILER_ID}")
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# Support large object code.
# clang-cl doesn't support this.
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} /bigobj")
endif()

# We may use UTF-8 in source code such as
# cpp/src/arrow/compute/kernels/scalar_string_test.cc
Expand Down

0 comments on commit 37c6bb4

Please sign in to comment.