aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2020-06-08 21:24:54 +0900
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-06-09 12:49:11 +0000
commit8edbb2859c4b12b1d5a87e0816f630ab4e81d7ad (patch)
tree6975ee9699ab4e324c26f59c6c2a868b03a57f5e /mesonbuild/compilers/compilers.py
parent44aa64b6a0bd285640aaa656db9577479428a132 (diff)
downloadmeson-8edbb2859c4b12b1d5a87e0816f630ab4e81d7ad.zip
meson-8edbb2859c4b12b1d5a87e0816f630ab4e81d7ad.tar.gz
meson-8edbb2859c4b12b1d5a87e0816f630ab4e81d7ad.tar.bz2
compilers: Add UNIX large file support for MinGW
MinGW gcc supports _FILE_OFFSET_BITS=64 and we need to set it for MinGW as well
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 4b286fe..50e2188 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1246,10 +1246,10 @@ def get_largefile_args(compiler):
'''
Enable transparent large-file-support for 32-bit UNIX systems
'''
- if not (compiler.info.is_windows() or compiler.info.is_darwin()):
+ if not (compiler.get_argument_syntax() == 'msvc' or compiler.info.is_darwin()):
# Enable large-file support unconditionally on all platforms other
- # than macOS and Windows. macOS is now 64-bit-only so it doesn't
- # need anything special, and Windows doesn't have automatic LFS.
+ # than macOS and MSVC. macOS is now 64-bit-only so it doesn't
+ # need anything special, and MSVC doesn't have automatic LFS.
# You must use the 64-bit counterparts explicitly.
# glibc, musl, and uclibc, and all BSD libcs support this. On Android,
# support for transparent LFS is available depending on the version of