Adapt cfg-expression evaluation for the new wasm64 target_arch

This commit is contained in:
Fabio Valentini 2022-09-05 17:20:43 +02:00
parent 55998b3bd2
commit c026764e94
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -68,7 +68,7 @@ def evaluate_predicate(name: str, value: str) -> bool:
# Needs to be ignored, as we cannot generate patches that are # Needs to be ignored, as we cannot generate patches that are
# different depending on the host architecture - except if the # different depending on the host architecture - except if the
# target architecture is "wasm32", which we don't support. # target architecture is "wasm32", which we don't support.
return value != "wasm32" return value not in ["wasm32", "wasm64"]
case "target_feature": case "target_feature":
# The "target_feature" predicate can be ignored as well, since the # The "target_feature" predicate can be ignored as well, since the