Skip to content

Commit

Permalink
Fix crash if "platform": "mips64" is used (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort authored Jul 11, 2024
1 parent ad27b25 commit 2e275d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vcpkg/platform-expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ namespace vcpkg::PlatformExpression
case Identifier::qnx: return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "QNX");
case Identifier::vxworks: return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "VxWorks");
case Identifier::wasm32: return true_if_exists_and_equal("VCPKG_TARGET_ARCHITECTURE", "wasm32");
case Identifier::mips64: return true_if_exists_and_equal("VCPKG_TARGET_ARCHITECTURE", "mips64");
case Identifier::static_link:
return true_if_exists_and_equal("VCPKG_LIBRARY_LINKAGE", "static");
case Identifier::static_crt: return true_if_exists_and_equal("VCPKG_CRT_LINKAGE", "static");
Expand All @@ -584,8 +585,8 @@ namespace vcpkg::PlatformExpression

return is_native->second == "1";
}
default: Checks::unreachable(VCPKG_LINE_INFO);
}
Checks::unreachable(VCPKG_LINE_INFO);
}
else if (expr.kind == ExprKind::op_not)
{
Expand Down

0 comments on commit 2e275d7

Please sign in to comment.