mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
Enable Large File Support extension (LFS)
This PR adds flags to enable LFS to make 32-bit builds to correctly handle 64-bit inode from the ext4/xfs file systems. Specifically, many APIs internally uses `readdir()` for listing directory, which may crash with an `EOVERFLOW`, `Value too large for defined data type`. See https://bugs.gentoo.org/681790#c0 for some background about this issue. Closes https://github.com/dart-lang/sdk/pull/49179 GitOrigin-RevId: 34ff2282635ffd50cb8e5dffe57601bb0b2b18f7 Change-Id: Idd10d215f0791242fff986c18decc443609f471e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247245 Commit-Queue: Brian Quinlan <bquinlan@google.com> Reviewed-by: Brian Quinlan <bquinlan@google.com>
This commit is contained in:
parent
ca205612d6
commit
6b04565db2
|
@ -35,6 +35,13 @@ config("sdk") {
|
|||
]
|
||||
}
|
||||
}
|
||||
|
||||
# Enable Large File Support extension (LFS)
|
||||
cflags += [
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-D_LARGEFILE_SOURCE",
|
||||
"-D_LARGEFILE64_SOURCE",
|
||||
]
|
||||
}
|
||||
|
||||
config("executable_config") {
|
||||
|
|
Loading…
Reference in a new issue