@@ -262,10 +262,12 @@ src/_unicodedb.c: tools/ucdprops2code.py ## Update generated Unicode database lo
262262 $(PYTHON ) tools/ucdprops2code.py $@
263263
264264# building a python debug interpreter
265- PYDEBUG_VER =3.14.0b3
265+ PYDEBUG_VER =3.14.0rc1
266266PYDEBUG_DIR =/space/pydebug
267267PYTHREAD_VER =$(PYDEBUG_VER )
268268PYTHREAD_DIR =/space/pythread
269+ PYFREETHREAD_VER =$(PYDEBUG_VER )
270+ PYFREETHREAD_DIR =/space/pyfreethread
269271# This must end in slash
270272PYDEBUG_WORKDIR =/space/apsw-test/
271273
@@ -282,11 +284,21 @@ pydebug: ## Build a debug python including address sanitizer. Extensions it bui
282284pythread : # # Build a debug python including thread sanitizer. Extensions it builds are also thread sanitized
283285 set -x && cd " $( PYTHREAD_DIR) " && find . -delete && \
284286 curl https://www.python.org/ftp/python/` echo $( PYTHREAD_VER) | sed ' s/[abr].*//' ` /Python-$(PYTHREAD_VER ) .tar.xz | tar xfJ - && \
285- cd Python-$(PYDEBUG_VER ) && \
286- env CFLAGS=-fsanitize=thread LDFLAGS=-fsanitize=thread TSAN_OPTIONS=report_bugs=0 ./configure --without-pymalloc --with-pydebug --prefix=" $( PYTHREAD_DIR) " --without-freelists && \
287- $(MAKE ) -j install
287+ cd Python-$(PYTHREAD_VER ) && \
288+ ./configure --with-address-sanitizer --with-undefined-behavior-sanitizer --with-strict-overflow --with-thread-sanitizer \
289+ --without-pymalloc --with-pydebug --prefix=" $( PYTHREAD_DIR) " --without-freelists --with-assertions --disable-ipv6 && \
290+ env ASAN_OPTIONS=detect_leaks=false $(MAKE ) -j install
288291 $(MAKE ) dev-depends PYTHON=$(PYTHREAD_DIR ) /bin/python3
289292
293+ pyfreethread : # # Build a debug FREE THREADED python
294+ set -x && cd " $( PYFREETHREAD_DIR) " && find . -delete && \
295+ curl https://www.python.org/ftp/python/` echo $( PYFREETHREAD_VER) | sed ' s/[abr].*//' ` /Python-$(PYFREETHREAD_VER ) .tar.xz | tar xfJ - && \
296+ cd Python-$(PYFREETHREAD_VER ) && \
297+ ./configure --disable-gil --with-address-sanitizer --with-undefined-behavior-sanitizer --with-strict-overflow \
298+ --with-pydebug --prefix=" $( PYFREETHREAD_DIR) " --without-freelists --with-assertions && \
299+ env ASAN_OPTIONS=detect_leaks=false $(MAKE ) -j install
300+ $(MAKE ) dev-depends PYTHON=$(PYFREETHREAD_DIR ) /bin/python3
301+
290302langserver : # # Language server integration json
291303 $(PYTHON ) tools/gencompilecommands.py > compile_commands.json
292304
0 commit comments