Skip to content

Commit

Permalink
Skip detecting abi for empty values (bazelbuild#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre authored and nyurik committed Mar 28, 2023
1 parent bbd945a commit 5cfdc82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/platform/triple_mappings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ def abi_to_constraints(abi, *, arch = None, system = None):
List: A list of labels to constraint values
"""

if not abi:
return []

if abi == "sim":
if not system:
fail("The ABI value {} is ambiguous. Please specify a system to match the right constraints.")
Expand Down

0 comments on commit 5cfdc82

Please sign in to comment.