Skip to content

Commit

Permalink
pythongh-95973: Add a new --with-dsymutil option to link debug inform…
Browse files Browse the repository at this point in the history
…ation in MacOS
  • Loading branch information
pablogsal committed Aug 14, 2022
1 parent 1402d2c commit ef1afe6
Show file tree
Hide file tree
Showing 5 changed files with 10,780 additions and 7,632 deletions.
16 changes: 14 additions & 2 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ DTRACE= @DTRACE@
DFLAGS= @DFLAGS@
DTRACE_HEADERS= @DTRACE_HEADERS@
DTRACE_OBJS= @DTRACE_OBJS@
DSYMUTIL= @DSYMUTIL@
DSYMUTIL_PATH= @DSYMUTIL_PATH@

GNULD= @GNULD@

Expand Down Expand Up @@ -575,7 +577,7 @@ LIBEXPAT_HEADERS= \
# Default target
all: @DEF_MAKE_ALL_RULE@
build_all: check-clean-src $(BUILDPYTHON) platform sharedmods \
gdbhooks Programs/_testembed scripts checksharedmods
gdbhooks Programs/_testembed scripts checksharedmods rundsymutil
build_wasm: check-clean-src $(BUILDPYTHON) platform sharedmods \
python-config checksharedmods

Expand Down Expand Up @@ -893,6 +895,16 @@ sharedmods: $(SHAREDMODS) pybuilddir.txt
checksharedmods: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON)
@$(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/Tools/scripts/check_extension_modules.py

rundsymutil: sharedmods $(PYTHON_FOR_BUILD_DEPS) $(BUILDPYTHON)
@if [ ! -z $(DSYMUTIL) ] ; then \
$(DSYMUTIL_PATH) $(BUILDPYTHON); \
for mod in X $(SHAREDMODS); do \
if test $$mod != X; then \
$(DSYMUTIL_PATH) $$mod; \
fi; \
done \
fi

Modules/Setup.local:
@# Create empty Setup.local when file was deleted by user
echo "# Edit this file for local setup changes" > $@
Expand Down Expand Up @@ -2497,7 +2509,7 @@ Python/thread.o: @THREADHEADERS@ $(srcdir)/Python/condvar.h

# Declare targets that aren't real files
.PHONY: all build_all build_wasm check-clean-src
.PHONY: sharedmods checksharedmods test quicktest
.PHONY: sharedmods checksharedmods test quicktest rundsymutil
.PHONY: install altinstall sharedinstall bininstall altbininstall
.PHONY: maninstall libinstall inclinstall libainstall
.PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure
Expand Down
92 changes: 12 additions & 80 deletions aclocal.m4

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ef1afe6

Please sign in to comment.