8000 gh-116984: Install mimalloc headers by oraluben · Pull Request #116985 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-116984: Install mimalloc headers #116985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename WITH_MIMALLOC to avoid different var with same name
  • Loading branch information
oraluben committed Mar 20, 2024
commit 207e87b858f97c3a724f1c1c1187a53c0e020816
6 changes: 3 additions & 3 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ LIBHACL_SHA2_A= Modules/_hacl/libHacl_Hash_SHA2.a
TZPATH=@TZPATH@

# If to install mimalloc headers
WITH_MIMALLOC=@WITH_MIMALLOC@
INSTALL_MIMALLOC=@INSTALL_MIMALLOC@

# Modes for directories, executables and data files created by the
# install process. Default to user-only-writable for all file types.
Expand Down Expand Up @@ -2584,7 +2584,7 @@ inclinstall:
$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
else true; \
fi
@if test "$(WITH_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; \
Expand All @@ -2605,7 +2605,7 @@ inclinstall:
echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal; \
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal; \
done
@if test "$(WITH_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; \
Expand Down
4 changes: 2 additions & 2 deletions configure

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

2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4752,7 +4752,7 @@ elif test "$disable_gil" = "yes"; then
fi

AC_MSG_RESULT([$with_mimalloc])
AC_SUBST([WITH_MIMALLOC], $with_mimalloc)
AC_SUBST([INSTALL_MIMALLOC], $with_mimalloc)
AC_SUBST([MIMALLOC_HEADERS])

# Check for Python-specific malloc support
Expand Down
0