fix objc freestanding sanitycheck

pull/5905/head
Nguyen, Giang (G. Yakiro) 5 years ago committed by Jussi Pakkanen
parent 7b9c348102
commit 333f77ad3d
  1. 2
      mesonbuild/compilers/objc.py

@ -41,7 +41,7 @@ class ObjCCompiler(CLikeCompiler, Compiler):
else:
extra_flags += environment.coredata.get_external_link_args(self.for_machine, self.language)
with open(source_name, 'w') as ofile:
ofile.write('#import<stdio.h>\n'
ofile.write('#import<stddef.h>\n'
'int main() { return 0; }\n')
pc = subprocess.Popen(self.exelist + extra_flags + [source_name, '-o', binary_name])
pc.wait()

Loading…
Cancel
Save