Make rstgen work with gcsafe (#20534)

* Make rstgen work with gcsafe

Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>

* add tests and fixes

* if nimHasWarningAsError

Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
This commit is contained in:
ringabout 2022-10-11 00:56:01 +08:00 • committed by GitHub
commit e290b028ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 9 deletions

View file

@ -34,3 +34,7 @@ define:useStdoutAsStdmsg
experimental:strictEffects
warningAsError:Effect:on
@end
@if nimHasWarningAsError:
warningAsError:GcUnsafe2:on
@end