Skip to content

Commit df5e2e3

Browse files
committed
limit compat scope to only 32 bit windows
1 parent 64875bf commit df5e2e3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/src/arrow/compute/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if(ARROW_TESTING AND ARROW_COMPUTE)
4848
add_library(arrow_compute_testing OBJECT ${ARROW_COMPUTE_TESTING_SRCS})
4949
# Even though this is still just an object library we still need to "link"
5050
# arrow_compute_core_testing so that is also included correctly
51-
if(WIN32)
51+
if(WIN32 AND (CMAKE_SIZEOF_VOID_P EQUAL 4))
5252
target_link_libraries(arrow_compute_testing
5353
PUBLIC $<TARGET_OBJECTS:arrow_compute_core_testing>
5454
PUBLIC ${ARROW_GTEST_GTEST_MAIN})

cpp/src/arrow/compute/test_env.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ class ComputeKernelEnvironment : public ::testing::Environment {
3535

3636
} // namespace
3737

38-
#ifdef _WIN32
38+
#if defined(_WIN32) && !defined(_WIN64)
3939
// Initialize the compute module
4040
::testing::Environment* compute_kernels_env =
4141
::testing::AddGlobalTestEnvironment(new ComputeKernelEnvironment);
4242
#endif
4343

4444
} // namespace arrow::compute
4545

46-
#ifndef _WIN32
46+
#if !(defined(_WIN32) && !defined(_WIN64))
4747
int main(int argc, char** argv) {
4848
::testing::InitGoogleTest(&argc, argv);
4949
::testing::AddGlobalTestEnvironment(new arrow::compute::ComputeKernelEnvironment);

0 commit comments

Comments
 (0)