From b99c2c2df16cac0b189dad14c6fc0f8cda1f76f0 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 3 May 2024 15:37:48 +0300 Subject: [PATCH] wscript: do not execute test for test for large files --- wscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 632ea06e..130f6d19 100644 --- a/wscript +++ b/wscript @@ -14,6 +14,9 @@ default_prefix = '/' # Waf uses it to set default prefix Context.Context.line_just = 55 # should fit for everything on 80x26 +c_tests.LARGE_FRAGMENT='''#include +int check[sizeof(off_t) >= 8 ? 1 : -1]; int main(void) { return 0; }''' + class Subproject: def __init__(self, name, fnFilter = None): self.name = name @@ -412,8 +415,7 @@ def configure(conf): # set _FILE_OFFSET_BITS=64 for filesystems with 64-bit inodes # must be set globally as it changes ABI - conf.check_large_file(compiler='c', fragment='''#include -int check[sizeof(off_t) >= 8 ? 1 : -1]; int main(void) { return 0; }''') + conf.check_large_file(compiler = 'c', execute = False) # indicate if we are packaging for Linux/BSD conf.env.PACKAGING = conf.options.PACKAGING