Skip to content

Commit 70b1f4d

Browse files
committed
Export Py_GetBuildInfo to enable stable ABI
previously for some reason `Py_GetBuildInfo` wasn't exported and it failed some tests. Not sure how it doesn't fail on other platforms.
1 parent 6166614 commit 70b1f4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
17261726
$(MODOBJS) \
17271727
$(DTRACE_OBJS) \
17281728
$(srcdir)/Modules/getbuildinfo.c
1729-
$(CC) -c $(PY_CORE_CFLAGS) \
1729+
$(CC) -c $(PY_BUILTIN_MODULE_CFLAGS) \
17301730
-DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
17311731
-DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
17321732
-DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \

Modules/getbuildinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static char buildinfo[50 + sizeof(GITVERSION) +
4141
((sizeof(GITTAG) > sizeof(GITBRANCH)) ?
4242
sizeof(GITTAG) : sizeof(GITBRANCH))];
4343

44-
const char *
44+
PyAPI_FUNC(const char *)
4545
Py_GetBuildInfo(void)
4646
{
4747
if (initialized) {

0 commit comments

Comments
 (0)