mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
meson: Use a better error message in an impossible case
Meson validates 'choice' options for us, so technically this case is impossible. A better error message helps people reading the code understand what is going on in that branch. Author: Tristan Partin <tristan@neon.tech> Discussion: https://www.postgresql.org/message-id/flat/CSPIJVUDZFKX.3KHMOAVGF94RV%40c3po
This commit is contained in:
@ -1346,7 +1346,7 @@ if uuidopt != 'none'
|
|||||||
uuidfunc = 'uuid_export'
|
uuidfunc = 'uuid_export'
|
||||||
uuidheader = 'uuid.h'
|
uuidheader = 'uuid.h'
|
||||||
else
|
else
|
||||||
error('huh')
|
error('unknown uuid build option value: @0@'.format(uuidopt))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if not cc.has_header_symbol(uuidheader, uuidfunc, args: test_c_args, dependencies: uuid)
|
if not cc.has_header_symbol(uuidheader, uuidfunc, args: test_c_args, dependencies: uuid)
|
||||||
|
Reference in New Issue
Block a user