No need for the old-GCC patch. Instead just have OpenBSD builds use clang. It 
worked!
    
    
    $ bin/nim --version
    Nim Compiler Version 1.2.0 [OpenBSD: amd64]
    Compiled at 2020-04-03
    Copyright (c) 2006-2020 by Andreas Rumpf
    git hash: 7e83adff84be5d0c401a213eccb61e321a3fb1ff
    active boot switches: -d:release
    
    
    Run

** build.sh ** added line 92:
    
    
      *openbsd* )
        myos="openbsd"
        CC="clang"
    
    
    Run

**config /nim.cfg** added line 202:
    
    
    @if freebsd or openbsd or netbsd:
      cc = clang
    
    
    Run

That's all it took! Works great.

Reply via email to