Skip to content

Commit

Permalink
Fix DLL suffix on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Sep 28, 2023
1 parent 1368d28 commit 21fd4ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ci/scripts/integration_arrow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ time archery integration \
--run-ipc \
--run-flight \
--with-cpp=1 \
--with-csharp=1 \
--with-java=1 \
--with-js=1 \
--with-csharp=0 \
--with-java=0 \
--with-js=0 \
--with-go=1 \
--gold-dirs=$gold_dir/0.14.1 \
--gold-dirs=$gold_dir/0.17.1 \
Expand Down
8 changes: 7 additions & 1 deletion dev/archery/archery/integration/tester_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import contextlib
import functools
import os
import sys
import subprocess

from . import cdata
Expand All @@ -41,7 +42,12 @@
"localhost",
]

_dll_suffix = ".dll" if os.name == "nt" else ".so"
if sys.platform == "darwin":
_dll_suffix = ".dylib"
elif os.name == "nt":
_dll_suffix = ".dll"
else:
_dll_suffix = ".so"

_DLL_PATH = _EXE_PATH
_ARROW_DLL = os.path.join(_DLL_PATH, "libarrow" + _dll_suffix)
Expand Down

0 comments on commit 21fd4ae

Please sign in to comment.