diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-06-07 20:12:17 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-06-07 20:20:31 +0300 |
commit | fd0ad977a6983a01415f103a2e3dfe53b22cb5a3 (patch) | |
tree | f5063170b3a950a65f89369fc2bed526c975691a | |
parent | 2e30afb23b0f34308c747b1e799b66a2f992d398 (diff) | |
download | meson-fd0ad977a6983a01415f103a2e3dfe53b22cb5a3.tar.gz |
End test code with a newline. Closes #7247.
-rw-r--r-- | mesonbuild/compilers/mixins/clike.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index 56a9ea62b..1bbe6986a 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -1008,7 +1008,7 @@ class CLikeCompiler: return value[:] def find_library(self, libname, env, extra_dirs, libtype: LibType = LibType.PREFER_SHARED): - code = 'int main(void) { return 0; }' + code = 'int main(void) { return 0; }\n' return self.find_library_impl(libname, env, extra_dirs, code, libtype) def find_framework_paths(self, env): @@ -1117,7 +1117,7 @@ class CLikeCompiler: # false positive. args = self.linker.fatal_warnings() + args args = self.linker_to_compiler_args(args) - code = 'int main(void) { return 0; }' + code = 'int main(void) { return 0; }\n' return self.has_arguments(args, env, code, mode='link') @staticmethod |