Skip to content

Commit 0c71e22

Browse files
committed
build: error on incompatible quic configure flags
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent ce9d650 commit 0c71e22

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎configure.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,15 +2458,14 @@ def configure_ffi(o):
24582458

24592459
def configure_quic(o):
24602460
if options.experimental_quic and options.without_ssl:
2461-
warn('--experimental-quic is incompatible with --without-ssl')
2462-
o['variables']['node_use_quic'] = b(options.experimental_quic and
2463-
not options.without_ssl)
2461+
error('--experimental-quic is incompatible with --without-ssl')
2462+
o['variables']['node_use_quic'] = b(options.experimental_quic)
24642463

24652464
if not options.experimental_quic:
24662465
for lib in ['nghttp3', 'ngtcp2']:
24672466
shared_lib = 'shared_' + lib
24682467
if getattr(options, shared_lib):
2469-
warn(f'--shared-{lib} requires --experimental-quic')
2468+
error(f'--shared-{lib} requires --experimental-quic')
24702469
return
24712470

24722471
configure_library('nghttp3', output, pkgname='libnghttp3')

0 commit comments

Comments
 (0)