Changeset 47c1928 for tests/pybin


Ignore:
Timestamp:
Aug 10, 2018, 5:45:51 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
ae628e1
Parents:
2ea0a8a
Message:

Host now properly affects compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r2ea0a8a r47c1928  
    5151                        self.target = arch
    5252                        self.cross_compile = True
    53                         try :
    54                                 self.flags = Architecture.CrossCompileFlags[arch]
    55                         except KeyError:
    56                                 print("Cross compilation not available for architecture %s" % arch, file=sys.stderr)
    57                                 sys.exit(1)
    58 
    5953                else:
    6054                        self.target = canonical_host
    6155                        self.cross_compile = False
    62                         self.flags = ""
     56
     57
     58                try :
     59                        self.flags = Architecture.CrossCompileFlags[self.target]
     60                except KeyError:
     61                        print("Cross compilation not available for architecture %s" % self.target, file=sys.stderr)
     62                        sys.exit(1)
    6363
    6464                self.string = self.target
Note: See TracChangeset for help on using the changeset viewer.