golang 1.21 1.22兼容win7
1.21
编译的时候给 golang 打 patch , golang 1.21 撤销掉一个 commit 即可恢复对 win7 的支持 https://github.com/golang/go/commit/9e43850a3298a9b8b1162ba0033d4c53f8637571 如果需要对 win7 打 KB2533623 之前的版本做兼容,那就再撤回一个 commit https://github.com/golang/go/commit/a17d959debdb04cd550016a3501dd09d50cd62e7
1.22
需要撤销的是三个 commit
- https://github.com/golang/go/commit/693def151adff1af707d82d28f55dba81ceb08e1
- https://github.com/golang/go/commit/7c1157f9544922e96945196b47b95664b1e39108
- https://github.com/golang/go/commit/48042aa09c2f878c4faa576948b07fe625c4707a
如果需要对 KB2533623 之前的版本做兼容,一样需要撤回
实际用法: