mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
Update check_endianness() example to show that the return value needs to be used
This commit is contained in:
parent
1ea2039c3a
commit
a5918ab433
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user