Fixes compilation for --os:any + --exception:setjmp (#15626)

This commit is contained in:
Dominik Picheta 2020-10-20 15:47:23 +01:00 • committed by GitHub
commit 675cf5760f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -554,7 +554,7 @@ proc nimFrame(s: PFrame) {.compilerRtl, inl, raises: [].} =
when defined(cpp) and appType != "lib" and not gotoBasedExceptions and
not defined(js) and not defined(nimscript) and
hostOS != "standalone" and not defined(noCppExceptions):
hostOS != "standalone" and hostOS != "any" and not defined(noCppExceptions):
type
StdException {.importcpp: "std::exception", header: "<exception>".} = object