largefiles.py: improve printed messages

This commit is contained in:
Radim Kolar 2024-07-08 09:41:56 +02:00
parent 650da936ae
commit d88cb13bf7

View File

@ -2,7 +2,7 @@
# SCons Largefile enablement
#
# Version 1.4
# 07-Jul-2024
# 08-Jul-2024
#
def enableLargeFiles(check,conf):
@ -23,10 +23,10 @@ def enableLargeFiles(check,conf):
if not fseeko:
# no fseeko we do not need off_t for anything
offt = 0
check.Message("Effective off_t size is ")
check.Message("Checking for effective size of off_t ... ")
check.Result(str(offt)+" bytes")
conf.env.Append(CPPFLAGS = '-DSIZEOF_OFF_T='+str(offt))
check.Message("Checking if we have native large files ...")
check.Message("Checking if we have native large files ... ")
if fseeko and int(offt)>=8 and int(ulong)>=8:
conf.env.Append(CPPFLAGS = '-DNATIVE_LARGEFILES')
rc=True