Closed
Description
D20191001T210000
/cc @rayman22201 #12231 introduced a regression, making some projects not compile anymore; eg any project depending on nimongo
Example
nim c -r main.nim
# main.nim
import pkg/nimongo/mongo
Current Output
core/locks.nim(14, 10) Error: Locks requires --threads:on option.
(unlike what's mentioned in #12231 there is not necessarily a link error)
Expected Output
should compile and run
Additional Information
this is a regression introduced in #12231
note that forcing user to add --threads:on
is not an option, it causes other errors when adding that flag (eg in jester routes that work without --threads:on
) that are really hard to fix
- Your Nim version (output of
nim -v
).
Nim Compiler Version 1.0.99 [MacOSX: amd64]
Compiled at 2019-10-02
Copyright (c) 2006-2019 by Andreas Rumpf
git hash: c20778d
- Was it working in the previous Nim releases?
yes
note
would be nice to add nimongo to the set of tested packages in testsuite to prevent such future regressions