[gnome-builder] build: use has_link_argument()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: use has_link_argument()
- Date: Tue, 16 Oct 2018 18:08:44 +0000 (UTC)
commit ba8b086ed71824e7811ccc71b1cebb69d4254b49
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 16 11:08:32 2018 -0700
build: use has_link_argument()
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index d0a685a80..2efc0b53c 100644
--- a/meson.build
+++ b/meson.build
@@ -224,7 +224,7 @@ if not get_option('buildtype').startswith('debug')
endif
foreach link_arg: test_link_args
- if cc.links('int main () { return 0; }', name: link_arg, args: link_arg)
+ if cc.has_link_argument(link_arg)
global_link_args += link_arg
endif
endforeach
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]