update servant build flag

make it work when building w/o assistant
This commit is contained in:
Joey Hess 2024-07-23 08:53:56 -04:00
parent 6596fe80ec
commit fdb888a56a
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 5 additions and 3 deletions

View file

@ -55,7 +55,7 @@ buildFlags = filter (not . null)
#ifdef WITH_SERVANT
, "Servant"
#else
#warning Building without servant, no git-annex p2phttp.
#warning Building without servant, will not support annex+http urls or git-annex p2phttp.
#endif
#ifdef WITH_BENCHMARK
, "Benchmark"

View file

@ -174,7 +174,7 @@ Flag Crypton
Description: Use the crypton library rather than the no longer maintained cryptonite
Flag Servant
Description: Use the servant library, enabling git-annex p2phttp
Description: Use the servant library, enabling using annex+http urls and git-annex p2phttp
Flag Benchmark
Description: Enable benchmarking
@ -319,7 +319,9 @@ Executable git-annex
Build-Depends:
servant,
servant-server,
servant-client
servant-client,
warp (>= 3.2.8),
warp-tls (>= 3.2.2)
CPP-Options: -DWITH_SERVANT
Other-Modules:
Command.P2PHttp