Skip to content

Commit 115b9a0

Browse files
committed
Fix for large file support config.
1 parent 2e528a2 commit 115b9a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/configure/pyconf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ def compile_link_check(description: str, compiler: str, source: str) -> str:
21802180
src = os.path.join(tmp, "conftest.c")
21812181
exe = os.path.join(tmp, "conftest")
21822182
with open(src, "w") as f:
2183-
f.write(source)
2183+
f.write(_confdefs_preamble() + source)
21842184
cmd = f"{compiler} {shlex.quote(src)} -o {shlex.quote(exe)}"
21852185
try:
21862186
result_proc = subprocess.run(
@@ -2281,7 +2281,7 @@ def run_check_with_cc_flag(
22812281
src = os.path.join(tmp, "conftest.c")
22822282
exe = os.path.join(tmp, "conftest")
22832283
with open(src, "w") as f:
2284-
f.write(source)
2284+
f.write(_confdefs_preamble() + source)
22852285
try:
22862286
if not _run_cc(src, exe, cflags=shlex.quote(flag)):
22872287
return False
@@ -2307,7 +2307,7 @@ def run_program_output(
23072307
src = os.path.join(tmp, "conftest.c")
23082308
exe = os.path.join(tmp, "conftest")
23092309
with open(src, "w") as f:
2310-
f.write(source)
2310+
f.write(_confdefs_preamble() + source)
23112311
cflags = f"{extra_cflags} {extra_ldflags}".strip()
23122312
try:
23132313
if not _run_cc(src, exe, cflags=cflags, libs=extra_libs):

0 commit comments

Comments
 (0)