Skip to content

Commit e5ccb16

Browse files
committed
MSVC complex values
1 parent 270cffa commit e5ccb16

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build_graphblas_cffi.py

+3
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ def get_extension(apply_msvc_patch: bool = None, extra_compile_args=()):
113113
msvc_code = msvc_code.replace("double _Complex", "_Dcomplex")
114114
code_path.write_text(msvc_code)
115115

116+
# tell GraphBLAS.h that we need MSVC-style complex values
117+
extra_compile_args = list(extra_compile_args) + ["-DGxB_HAVE_COMPLEX_MSVC"]
118+
116119
return Extension(
117120
"suitesparse_graphblas._graphblas",
118121
[os.path.join("suitesparse_graphblas", "_graphblas.c")],

suitesparse.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ if [ -n "${SUITESPARSE_FASTEST_BUILD}" ]; then
114114
fi
115115

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

141140
if [ -n "${CMAKE_GNUtoMS}" ]; then
142141
if [ -z "${GRAPHBLAS_PREFIX}" ]; then

0 commit comments

Comments
 (0)