Skip to content

Commit

Permalink
MSVC complex values
Browse files Browse the repository at this point in the history
  • Loading branch information
alugowski committed Jun 3, 2024
1 parent 270cffa commit e5ccb16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build_graphblas_cffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def get_extension(apply_msvc_patch: bool = None, extra_compile_args=()):
msvc_code = msvc_code.replace("double _Complex", "_Dcomplex")
code_path.write_text(msvc_code)

# tell GraphBLAS.h that we need MSVC-style complex values
extra_compile_args = list(extra_compile_args) + ["-DGxB_HAVE_COMPLEX_MSVC"]

return Extension(
"suitesparse_graphblas._graphblas",
[os.path.join("suitesparse_graphblas", "_graphblas.c")],
Expand Down
3 changes: 1 addition & 2 deletions suitesparse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ if [ -n "${SUITESPARSE_FASTEST_BUILD}" ]; then
fi

if [ -n "${CMAKE_GNUtoMS}" ]; then
# Windows JIT options
# Windows options
echo "Skipping JIT on Windows for now because it fails to build."
cmake_params+=(-DGRAPHBLAS_USE_JIT=OFF)
else
Expand All @@ -136,7 +136,6 @@ fi
cmake .. -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles' "${cmake_params[@]}"
make -j$NPROC
$SUDO make install
#cmake --install . --prefix ${GRAPHBLAS_PREFIX}

if [ -n "${CMAKE_GNUtoMS}" ]; then
if [ -z "${GRAPHBLAS_PREFIX}" ]; then
Expand Down

0 comments on commit e5ccb16

Please sign in to comment.