]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-121467: Fix makefile to include mimalloc headers (#121469)
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>
Mon, 8 Jul 2024 00:45:21 +0000 (02:45 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jul 2024 00:45:21 +0000 (17:45 -0700)
Makefile.pre.in
Misc/NEWS.d/next/Build/2024-07-08-01-11-54.gh-issue-121467.3qWRQj.rst [new file with mode: 0644]

index 94cfb74138a3d9906de424de5c7a6fbc840490b3..0bece8717ef4c07303e53dca973b074bc215ad22 100644 (file)
@@ -2652,7 +2652,7 @@ inclinstall:
                $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
        else    true; \
        fi
-       @if test "$(INSTALL_MIMALLOC)" == "yes"; then \
+       @if test "$(INSTALL_MIMALLOC)" = "yes"; then \
                if test ! -d $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; then \
                        echo "Creating directory $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc"; \
                        $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; \
@@ -2673,7 +2673,7 @@ inclinstall:
                echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal; \
                $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal; \
        done
-       @if test "$(INSTALL_MIMALLOC)" == "yes"; then \
+       @if test "$(INSTALL_MIMALLOC)" = "yes"; then \
                echo $(INSTALL_DATA) $(srcdir)/Include/internal/mimalloc/mimalloc.h $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc.h; \
                $(INSTALL_DATA) $(srcdir)/Include/internal/mimalloc/mimalloc.h $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc.h; \
                for i in $(srcdir)/Include/internal/mimalloc/mimalloc/*.h; \
diff --git a/Misc/NEWS.d/next/Build/2024-07-08-01-11-54.gh-issue-121467.3qWRQj.rst b/Misc/NEWS.d/next/Build/2024-07-08-01-11-54.gh-issue-121467.3qWRQj.rst
new file mode 100644 (file)
index 0000000..a223847
--- /dev/null
@@ -0,0 +1 @@
+Fix a Makefile bug that prevented mimalloc header files from being installed.