Skip to content

Commit

Permalink
Moved ipv6 cabal flag to ouroboros-network-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Nov 24, 2022
1 parent 679c7da commit b980ea3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 9 additions & 0 deletions ouroboros-network-framework/ouroboros-network-framework.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ maintainer: alex@well-typed.com, duncan@well-typed.com, marcin.szamotul
build-type: Simple
extra-source-files: CHANGELOG.md

Flag ipv6
Description: Enable IPv6 test cases
Manual: True
-- Default to False since travis lacks IPv6 support
Default: False

library
exposed-modules: Data.Cache
Data.Wedge
Expand Down Expand Up @@ -210,6 +216,9 @@ test-suite test
-Wredundant-constraints
-Wno-unticked-promoted-constructors

if flag(ipv6)
cpp-options: -DOUROBOROS_NETWORK_IPV6

executable demo-ping-pong
hs-source-dirs: demo test
main-is: ping-pong.hs
Expand Down
8 changes: 0 additions & 8 deletions ouroboros-network/ouroboros-network.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ flag asserts
manual: False
default: False

Flag ipv6
Description: Enable IPv6 test cases
Manual: True
-- Default to False since travis lacks IPv6 support
Default: False

flag cddl
Description: Enable CDDL based tests of the CBOR encoding
Manual: True
Expand Down Expand Up @@ -366,8 +360,6 @@ test-suite test
-threaded
-rtsopts
+RTS -T -RTS
if flag(ipv6)
cpp-options: -DOUROBOROS_NETWORK_IPV6


test-suite cddl
Expand Down

0 comments on commit b980ea3

Please sign in to comment.