Do function checking without linking so you do not need to define libraries to link against.
This commit is contained in:
parent
b4a6ea7d62
commit
8a0a982073
|
@ -301,16 +301,7 @@ int main(int argc, char **argv) {
|
||||||
if isinstance(val, bool):
|
if isinstance(val, bool):
|
||||||
return val
|
return val
|
||||||
raise EnvironmentException('Cross variable {0} is not an boolean.'.format(varname))
|
raise EnvironmentException('Cross variable {0} is not an boolean.'.format(varname))
|
||||||
cross_failed = False
|
return self.compiles(templ % (prefix, funcname))
|
||||||
try:
|
|
||||||
res = self.run(templ % (prefix, funcname))
|
|
||||||
except CrossNoRunException:
|
|
||||||
cross_failed = True
|
|
||||||
if cross_failed:
|
|
||||||
message = '''Can not determine existance {0} because cross compiled binaries are not runnable.
|
|
||||||
Please define variable {1} in your cross compilation definition file.'''.format(funcname, varname)
|
|
||||||
raise EnvironmentException(message)
|
|
||||||
return res.compiled
|
|
||||||
|
|
||||||
def has_member(self, typename, membername, prefix):
|
def has_member(self, typename, membername, prefix):
|
||||||
templ = '''%s
|
templ = '''%s
|
||||||
|
|
Loading…
Reference in New Issue