aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objc.py
diff options
context:
space:
mode:
authorNguyen, Giang (G. Yakiro) <yakiro.nvg@gmail.com>2019-09-07 17:09:53 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-09-08 16:27:52 +0300
commit333f77ad3dcc0f33a7ff74fe7bca4d8da1713be2 (patch)
treec7cc33fd0462906c57b4929ced5738bde7b29bfc /mesonbuild/compilers/objc.py
parent7b9c348102792030859ed0001a51416506a0a092 (diff)
downloadmeson-333f77ad3dcc0f33a7ff74fe7bca4d8da1713be2.zip
meson-333f77ad3dcc0f33a7ff74fe7bca4d8da1713be2.tar.gz
meson-333f77ad3dcc0f33a7ff74fe7bca4d8da1713be2.tar.bz2
fix objc freestanding sanitycheck
Diffstat (limited to 'mesonbuild/compilers/objc.py')
-rw-r--r--mesonbuild/compilers/objc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/objc.py b/mesonbuild/compilers/objc.py
index 7a778d7..1004a72 100644
--- a/mesonbuild/compilers/objc.py
+++ b/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()