build: Be more strict when looking for a C compiler

In practice, this means that only Clang and GCC are accepted.

https://github.com/containers/toolbox/pull/960
This commit is contained in:
Debarshi Ray 2021-11-13 04:08:27 +01:00
parent c28d902089
commit d96faf0c1e
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@ project(
)
cc = meson.get_compiler('c')
if not cc.has_argument('-print-file-name=libc.so')
error('C compiler does not support the -print-file-name argument.')
endif
go = find_program('go')
go_md2man = find_program('go-md2man')