Skip to content

Commit 6549a02

Browse files
committed
meson: Fix missing name arguments of cc.compiles() calls
Without it, the check won't show up in the meson setup/configure output. Discussion: https://www.postgresql.org/message-id/flat/795b1c54-c64a-47f9-8fa3-880dcab59975%40eisentraut.org
1 parent 30f0176 commit 6549a02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,6 +1727,7 @@ if cc.compiles('''
17271727
my_label:
17281728
return 1;
17291729
}''',
1730+
name: 'computed goto',
17301731
args: test_c_args)
17311732
cdata.set('HAVE_COMPUTED_GOTO', 1)
17321733
endif
@@ -1743,6 +1744,7 @@ if cc.compiles('''
17431744
({ _Static_assert(1, "foo"); });
17441745
}
17451746
''',
1747+
name: '_Static_assert',
17461748
args: test_c_args)
17471749
cdata.set('HAVE__STATIC_ASSERT', 1)
17481750
endif
@@ -2359,6 +2361,7 @@ elif host_cpu == 'ppc' or host_cpu == 'ppc64'
23592361
}
23602362
int test_adds(int x) { return addi(3, x) + addi(x, 5); }
23612363
''',
2364+
name: '@0@: "i"(x) when __builtin_constant_p(x)'.format(host_cpu),
23622365
args: test_c_args)
23632366
cdata.set('HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P', 1)
23642367
endif
@@ -2547,7 +2550,7 @@ int main(void)
25472550
return y;
25482551
}
25492552
'''.format(kw),
2550-
name: 'typeof()',
2553+
name: kw,
25512554
args: test_c_args, include_directories: postgres_inc)
25522555

25532556
cdata.set('HAVE_TYPEOF', 1)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy