https://pantsbuild.org/ logo
#development
Title
# development
a

aloof-angle-91616

07/12/2019, 5:06 AM
and there's also an example of a desugared version:
Copy code
@rule(LibcObjects, [NativeToolchain], given=[Platform.darwin])
def select_libc_objects_darwin(native_toolchain):
  """???/libc search will fail on osx/not supported"""
  return LibcObjects([])

# # ^desugars to...?
# @rule(LibcObjects, [Anon(Platform.darwin), NativeToolchain])
# def select_libc_objects_darwin(anon_enum_wrapper, native_toolchain):
#   return original_function(native_toolchain)