<s> import fbuild <EOL> import fbuild . config . c as c <EOL> class arch ( c . Test ) : <EOL> @ c . cacheproperty <EOL> def little_endian ( self ) : <EOL> code = '''<STR_LIT>''' <EOL> self . ctx . logger . check ( '<STR_LIT>' ) <EOL> try : <EOL> stdout = self . builder . tempfile_run ( code ) [ <NUM_LIT:0> ] <EOL> except fbuild . ExecutionError : <EOL> self . ctx . logger . failed ( ) <EOL> return None <EOL> else : <EOL> little_endian = int ( stdout ) == <NUM_LIT:1> <EOL> if little_endian : <EOL> self . ctx . logger . passed ( '<STR_LIT>' ) <EOL> else : <EOL> self . ctx . logger . passed ( '<STR_LIT>' ) <EOL> return little_endian </s>
