Skip to content

Commit

Permalink
Some fixes and workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Aug 30, 2022
1 parent d38a5e9 commit 657b4cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cpp/cmake_modules/SetupCxxFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,13 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID STRE

# Don't complain about optimization passes that were not possible
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wno-pass-failed")

# Avoid clang / libc++ error about C++17 aligned allocation on macOS.
# See https://chromium.googlesource.com/chromium/src/+/eee44569858fc650b635779c4e34be5cb0c73186%5E%21/#F0
# for details.
if(APPLE)
set(CXX_ONLY_FLAGS "${CXX_ONLY_FLAGS} -fno-aligned-new")
endif()
endif()

# if build warning flags is set, add to CXX_COMMON_FLAGS
Expand Down
6 changes: 5 additions & 1 deletion cpp/src/arrow/compute/kernels/aggregate_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#pragma once

#include <cassert>

#include "arrow/compute/kernels/util_internal.h"
#include "arrow/type.h"
#include "arrow/type_traits.h"
Expand Down Expand Up @@ -173,7 +175,9 @@ enable_if_t<std::is_floating_point<SumType>::value, SumType> SumArray(
block_sum = sum[cur_level];
sum[cur_level] = 0;
++cur_level;
DCHECK_LT(cur_level, levels);
// XXX not using DCHECK here because of a reproducible internal compiler error
// on gcc 7.5.0.
assert(cur_level < levels);
cur_level_mask <<= 1;
sum[cur_level] += block_sum;
mask ^= cur_level_mask;
Expand Down
4 changes: 4 additions & 0 deletions dev/tasks/verify-rc/github.macos.amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

{% set use_conda = use_conda|default(False) %}

env:
# Current oldest supported version according to https://endoflife.date/macos
MACOSX_DEPLOYMENT_TARGET: "10.15"

jobs:
verify:
name: "Verify release candidate on macOS"
Expand Down

0 comments on commit 657b4cd

Please sign in to comment.