Skip to content

Commit f841b6b

Browse files
committed
use malloc on windows
1 parent d7c2d2b commit f841b6b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The CI does neither automatically build new OGDF versions nor directly publishes
1313
- Commit and push your changes to GitHub.
1414
- Wait for the CI there to finish.
1515
- Download the resulting `.whl` files.
16-
- Use [`twine`](https://twine.readthedocs.io/en/stable/index.html) to upload the files to PyPi, see also the [`ogdf-python` release process](https://github.com/ogdf/ogdf-python/blob/master/README.md).
16+
- Use [`twine`](https://twine.readthedocs.io/en/stable/index.html) to upload the files to PyPi, see also the [`ogdf-python` release process](https://github.com/ogdf/ogdf-python/blob/master/RELEASING.md).
1717

1818
## Building a clean sdist locally
1919

hatch_build.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,12 @@ def initialize(self, version, build_data):
136136
"-DOGDF_WARNING_ERRORS=OFF",
137137
"-DCMAKE_BUILD_RPATH=$ORIGIN;@loader_path", "-DCMAKE_INSTALL_RPATH=$ORIGIN;@loader_path",
138138
"-DMACOSX_RPATH=TRUE",
139-
"-DCMAKE_INSTALL_LIBDIR=lib", # instead of lib64 https://stackoverflow.com/a/76528304
140-
"-DOGDF_MEMORY_MANAGER=POOL_TS", # "-DOGDF_MEMORY_MANAGER=MALLOC_TS", "-DOGDF_LEAK_CHECK=ON",
139+
"-DCMAKE_INSTALL_LIBDIR=lib", # instead of lib64 https://stackoverflow.com/a/76528304
141140
]
141+
if is_windows():
142+
flags.append("-DOGDF_MEMORY_MANAGER=MALLOC_TS")
143+
else:
144+
flags.append("-DOGDF_MEMORY_MANAGER=POOL_TS")
142145

143146
release_dir = self.cmake_build_dir("release")
144147
self.run("cmake", self.ogdf_src_dir, "-DCMAKE_BUILD_TYPE=Release", *flags, dir=release_dir)

0 commit comments

Comments
 (0)