Skip to content

Commit

Permalink
Disable extra-platforms = i686-linux on wsl1
Browse files Browse the repository at this point in the history
WSL1 doesn’t support i686-linux emulation, see microsoft/WSL#2468
  • Loading branch information
matthewbauer committed Jun 9, 2020
1 parent d558fb9 commit 61e873f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/globals.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 61e873f

Please sign in to comment.