@@ -233,6 +233,9 @@ LIBHACL_SHA2_A= Modules/_hacl/libHacl_Hash_SHA2.a
233
233
# Default zoneinfo.TZPATH. Added here to expose it in sysconfig.get_config_var
234
234
TZPATH=@TZPATH@
235
235
236
+ # If to install mimalloc headers
237
+ INSTALL_MIMALLOC=@INSTALL_MIMALLOC@
238
+
236
239
# Modes for directories, executables and data files created by the
237
240
# install process. Default to user-only-writable for all file types.
238
241
DIRMODE= 755
@@ -2616,6 +2619,12 @@ inclinstall:
2616
2619
$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
2617
2620
else true; \
2618
2621
fi
2622
+ @if test "$(INSTALL_MIMALLOC)" == "yes"; then \
2623
+ if test ! -d $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; then \
2624
+ echo "Creating directory $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc"; \
2625
+ $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; \
2626
+ fi; \
2627
+ fi
2619
2628
@for i in $(srcdir)/Include/*.h; \
2620
2629
do \
2621
2630
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
@@ -2631,6 +2640,16 @@ inclinstall:
2631
2640
echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal; \
2632
2641
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal; \
2633
2642
done
2643
+ @if test "$(INSTALL_MIMALLOC)" == "yes"; then \
2644
+ echo $(INSTALL_DATA) $(srcdir)/Include/internal/mimalloc/mimalloc.h $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc.h; \
2645
+ $(INSTALL_DATA) $(srcdir)/Include/internal/mimalloc/mimalloc.h $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc.h; \
2646
+ for i in $(srcdir)/Include/internal/mimalloc/mimalloc/*.h; \
2647
+ do \
2648
+ echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal/mimalloc/mimalloc; \
2649
+ $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; \
2650
+ done; \
2651
+ fi
2652
+ echo $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
2634
2653
$(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
2635
2654
2636
2655
# Install the library and miscellaneous stuff needed for extending/embedding
0 commit comments