Merge pull request #478 from centricular/sizeof_no_symbol

Return -1 from cc.sizeof if the symbol could not be found
pull/483/head
Jussi Pakkanen 9 years ago
commit 37d7473615
  1. 2
      mesonbuild/compilers.py

@ -574,7 +574,7 @@ int main(int argc, char **argv) {
''' '''
res = self.run(templ % (prefix, element), extra_args) res = self.run(templ % (prefix, element), extra_args)
if not res.compiled: if not res.compiled:
raise EnvironmentException('Could not compile sizeof test.') return -1
if res.returncode != 0: if res.returncode != 0:
raise EnvironmentException('Could not run sizeof test binary.') raise EnvironmentException('Could not run sizeof test binary.')
return int(res.stdout) return int(res.stdout)

Loading…
Cancel
Save