No, it does not work for me with your `panicoverride.nim`.
    
    
    nim -v
    Nim Compiler Version 1.2.0 [Windows: amd64]
    Compiled at 2020-04-03
    Copyright (c) 2006-2020 by Andreas Rumpf
    
    git hash: 7e83adff84be5d0c401a213eccb61e321a3fb1ff
    active boot switches: -d:release
    
    
    Run

The problem **is** associated with " **==** ".

@leorize, by changing "standalone" to "any", the error is gone. **But** , in 
this case, some warnings appear (Warning: '....' uses GC'ed memory), and 
`panicoverride.nim` is not needed any more. See `fatal.nim`:
    
    
    when hostOS == "standalone":
      include "$projectpath/panicoverride"
      
      proc sysFatal(exceptn: typedesc, message: string) {.inline.} =
        panic(message)
    ....
    
    
    Run

So, `--os:any` is not a replacement of `--os:standalone`.

Reply via email to