Check for mixed cross and native code. Closes #267.

pull/278/head
Jussi Pakkanen 9 years ago
parent e96a31cce4
commit e76631c0d0
  1. 2
      build.py

@ -461,6 +461,8 @@ class BuildTarget():
if not isinstance(t, StaticLibrary) and \
not isinstance(t, SharedLibrary):
raise InvalidArguments('Link target is not library.')
if self.is_cross != t.is_cross:
raise InvalidArguments('Tried to mix cross built and native libraries in target %s.' % self.name)
self.link_targets.append(t)
def set_generated(self, genlist):

Loading…
Cancel
Save