Skip to content

Commit 91595fb

Browse files
committed
Add debug build
1 parent 80320b8 commit 91595fb

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

ci/azure/azure_template_posix.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
python.version: '3.13'
5151
CC: clang-20
5252
use.clang: true
53+
python313_debug:
54+
python.version: '3.13'
55+
BUILD_FLAGS: '-Csetup-args=-Dbuildtype=debug -Cbuild-dir=build-dbg'
5356
python313_latest:
5457
python.version: '3.13'
5558
python314_latest:
@@ -60,8 +63,6 @@ jobs:
6063
python_312_no_coverage:
6164
python.version: '3.12'
6265
PYPI: true
63-
# TODO: Enable debug
64-
RANDOMGEN_DEBUG: true
6566
test.wheel: true
6667
coverage: false
6768
${{ if eq(parameters.name, 'macOS') }}:

randomgen/meson.build

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ npyrandom_lib = cc.find_library('npyrandom', dirs: npyrandom_path)
4040
# Needed to trick Cython, it won't do a relative import outside a package
4141
_cython_tree = [fs.copyfile('__init__.py')]
4242

43-
# TODO: Check these flags
44-
# TODO: Enable cython coverage in CI
45-
# "language_level": "3",
46-
# "binding": True,
47-
# "linetrace": CYTHON_COVERAGE,
48-
4943
_pcg64_def = []
5044
_blabla_def = []
5145
if get_option('pcg64-force-emulated')

randomgen/rdrand.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ cdef uint64_t rdrand_uint64(void* st) noexcept nogil:
5252

5353

5454
cdef uint32_t rdrand_uint32(void *st) noexcept nogil:
55-
# TODO: This is lazy
5655
return <uint32_t>rdrand_uint64(st)
5756

5857
cdef double rdrand_double(void* st) noexcept nogil:

tools/practrand-driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def main():
364364
if __name__ == "__main__":
365365
try:
366366
main()
367-
except (BrokenPipeError, OSError):
367+
except OSError:
368368
logging.log(logging.INFO, "Pipe broken, assuming complete")
369369

370370
sys.stderr.close()

0 commit comments

Comments
 (0)