{"id":589,"date":"2021-09-27T16:11:14","date_gmt":"2021-09-27T08:11:14","guid":{"rendered":"https:\/\/www.orztip.com\/?p=589&#038;article_title="},"modified":"2021-09-27T16:12:25","modified_gmt":"2021-09-27T08:12:25","slug":"vscode-support-centos-7-again-from-1-60","status":"publish","type":"post","link":"https:\/\/www.orztip.com\/?p=589&article_title=vscode-support-centos-7-again-from-1-60","title":{"rendered":"Visual Studio Code\u4ece1.60\uff082021\u5e748\u6708\u7248\uff09\u5f00\u59cb\u91cd\u65b0\u652f\u6301CentOS 7"},"content":{"rendered":"\n<p>\u57282021\u5e741\u6708Visual Studio Code\u53d1\u5e031.53\u65f6\uff0c\u5f00\u59cb\u4e0d\u652f\u6301CentOS 7\uff0c\u8fd9\u662f\u56e0\u4e3a\u5347\u7ea7\u5f15\u5165\u4e86Electron 11\uff0c\u6784\u5efa\u7684gcc-5 toolchain\u6240\u9700\u7684GLIBCXX\u8981\u6c42\u6700\u4f4e\u7248\u672c\u4e3a3.4.21\u3002\u5f53\u65f6\u7684\u6587\u6863\u91cc\u9762\u6709\u5982\u4e0b\u63cf\u8ff0\u30101\u3011\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Electron 11 update\n\nIn this milestone, we finished the exploration to bundle Electron 11 into VS Code, thanks to everyone involved with testing and self-hosting on insiders. This is a major Electron release and comes with Chromium 87.0.4280.141 and Node.js 12.18.3.\n\nBreaking change\n\nAs a side effect of this update, we had to bump our build image to use Ubuntu-18.04 for x64 linux machines to consume Electron. This update raised the minimum GLIBCXX requirement to 3.4.22 for our native modules, which breaks support for older distros on desktop. After some changes to the build system, we were able to go back as far as using gcc-5 toolchain, which brings the minimum GLIBCXX requirement to 3.4.21. With these changes, the following are the distros known to work for the x64 desktop app:\n\nUbuntu 16.04 and newer\nFedora 24 and newer\nDebian 9 and newer\nCentOS 8 and newer<\/code><\/pre>\n\n\n\n<p>\u4e0d\u8fc7\u51e0\u4e2a\u6708\u540e\u76842021\u5e748\u6708\uff0cVisual Studio Code\u53d1\u5e03\u76841.60\u7248\u672c\u5f00\u59cb\u91cd\u65b0\u652f\u6301CentOS 7\u30102\u3011\u3002\u53d1\u5e03\u6587\u6863\u5185\u5bb9\u5982\u4e0b\u30103\u3011\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Fix support for RHEL7 and Centos7 distros\n\nIn VS Code version 1.53, we updated our build images to consume newer Electron versions causing a change in CXXABI requirements for native modules that broke our rpm packages in some distros issue #115784. With update to Electron v13, we are now able to build our native modules with the same compiler toolchain as the runtime, specifically we now use Clang and statically link the libcxx from the runtime. This allows us to bypass the CXXABI requirements for only a small increase in binary size ~10 MB and bring back support for these distros. Thanks for your patience and help with testing on Insiders.<\/code><\/pre>\n\n\n\n<p>CentOS 7\u7528\u6237\u53c8\u53ef\u4ee5\u6109\u5feb\u5730\u4f7f\u7528Visual Studio Code\u4e86\u3002<\/p>\n\n\n\n<p>\u30101\u3011https:\/\/code.visualstudio.com\/updates\/v1_53<\/p>\n\n\n\n<p>\u30102\u3011https:\/\/github.com\/microsoft\/vscode\/issues\/115784<\/p>\n\n\n\n<p>\u30103\u3011https:\/\/code.visualstudio.com\/updates\/v1_60<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57282021\u5e741\u6708Visual Studio Code\u53d1\u5e031.53\u65f6\uff0c\u5f00\u59cb\u4e0d\u652f\u6301CentOS 7\uff0c\u8fd9\u662f\u56e0\u4e3a\u5347\u7ea7\u5f15&hellip; <a class=\"more-link\" href=\"https:\/\/www.orztip.com\/?p=589&#038;article_title=vscode-support-centos-7-again-from-1-60\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Visual Studio Code\u4ece1.60\uff082021\u5e748\u6708\u7248\uff09\u5f00\u59cb\u91cd\u65b0\u652f\u6301CentOS 7<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,116,1],"tags":[13],"_links":{"self":[{"href":"https:\/\/www.orztip.com\/index.php?rest_route=\/wp\/v2\/posts\/589"}],"collection":[{"href":"https:\/\/www.orztip.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.orztip.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.orztip.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.orztip.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=589"}],"version-history":[{"count":1,"href":"https:\/\/www.orztip.com\/index.php?rest_route=\/wp\/v2\/posts\/589\/revisions"}],"predecessor-version":[{"id":590,"href":"https:\/\/www.orztip.com\/index.php?rest_route=\/wp\/v2\/posts\/589\/revisions\/590"}],"wp:attachment":[{"href":"https:\/\/www.orztip.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.orztip.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.orztip.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}