Skip to content

Commit

Permalink
check arc/orc
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Jan 18, 2024
1 parent db21d8a commit 42e3e9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ready.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import ready/connections
export connections

when compileOption("threads"):
when not defined(nimdoc):
when not defined(gcArc) and not defined(gcOrc):
{.error: "Ready requires --mm:arc or --mm:orc when --threads:on.".}

## Using the connection pool requires --threads:on
import ready/pools
export pools

0 comments on commit 42e3e9c

Please sign in to comment.