]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-127146: Enable large files on Emscripten (GH-135635) (#135655)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Jun 2025 04:53:01 +0000 (06:53 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Jun 2025 04:53:01 +0000 (04:53 +0000)
Large files have been fully supported by Emscripten for a long time.
(cherry picked from commit 01c80b265060f016d3534eb74d540363808804e1)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
configure
configure.ac

index 882e0409d60401ac4097c95c6ff8189b90f4f4d9..bc996235c700b5c2cd08df4298226c0f0c9dfb23 100755 (executable)
--- a/configure
+++ b/configure
@@ -12979,13 +12979,6 @@ if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
 else
   have_largefile_support="no"
 fi
-case $ac_sys_system in #(
-  Emscripten) :
-    have_largefile_support="no"
- ;; #(
-  *) :
-     ;;
-esac
 if test "x$have_largefile_support" = xyes
 then :
 
index c26e5c7fd1ddc01c229e0c1e19283eee7a1ded5a..47198c8722e872d3aeca3a8190c27fcd89b1df1c 100644 (file)
@@ -3172,10 +3172,6 @@ if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
 else
   have_largefile_support="no"
 fi
-dnl LFS does not work with Emscripten 3.1
-AS_CASE([$ac_sys_system],
-  [Emscripten], [have_largefile_support="no"]
-)
 AS_VAR_IF([have_largefile_support], [yes], [
   AC_DEFINE([HAVE_LARGEFILE_SUPPORT], [1],
   [Defined to enable large file support when an off_t is bigger than a long