2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Update check_endianness() example to show that the return value needs to be used

This commit is contained in:
Matt Selsky 2017-02-07 22:29:08 -05:00 committed by Thomas Nagy
parent 1ea2039c3a
commit a5918ab433

View File

@ -38,7 +38,9 @@ def configure(conf):
conf.check(lib='m', cflags='-Wall', defines=['var=foo', 'x=y'], uselib_store='M', mandatory=False)
conf.check_large_file(mandatory=False)
conf.check_inline()
conf.check_endianness()
endianness = conf.check_endianness()
conf.define_cond("BIG_ENDIAN", endianness == "big")
def test_build(ctx):
ctx(rule='echo hello', shell=True, always=True)