Skip to content

Commit 03b674c

Browse files
committed
net/meson.build: compile IPv[46]Address.cxx only if TCP is enabled
1 parent 9c42199 commit 03b674c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/net/meson.build

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ have_tcp = get_option('tcp')
44
conf.set('HAVE_TCP', have_tcp)
55

66
if have_tcp
7-
net_sources += 'DscpParser.cxx'
7+
net_sources += [
8+
'IPv4Address.cxx',
9+
'IPv6Address.cxx',
10+
'DscpParser.cxx',
11+
]
812
endif
913

1014
if have_tcp and not get_option('ipv6').disabled()
@@ -43,8 +47,6 @@ net = static_library(
4347
'AddressInfo.cxx',
4448
'StaticSocketAddress.cxx',
4549
'AllocatedSocketAddress.cxx',
46-
'IPv4Address.cxx',
47-
'IPv6Address.cxx',
4850
'SocketAddress.cxx',
4951
'SocketUtil.cxx',
5052
'SocketDescriptor.cxx',

0 commit comments

Comments
 (0)