Disable extra-platforms = i686-linux on wsl1 (#3676)

WSL1 doesn’t support i686-linux emulation, see https://github.com/microsoft/wsl/issues/2468
This commit is contained in:
Matthew Bauer 2020-06-09 16:53:53 -05:00 committed by GitHub
parent d558fb98f6
commit b2c8061b44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,7 +271,7 @@ public:
"listed in 'trusted-public-keys'."};
Setting<StringSet> extraPlatforms{this,
std::string{SYSTEM} == "x86_64-linux" ? StringSet{"i686-linux"} : StringSet{},
std::string{SYSTEM} == "x86_64-linux" && !isWSL1() ? StringSet{"i686-linux"} : StringSet{},
"extra-platforms",
"Additional platforms that can be built on the local system. "
"These may be supported natively (e.g. armv7 on some aarch64 CPUs "