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
1 changed files with 3 additions and 1 deletions

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)