https://pantsbuild.org/ logo
a

aloof-angle-91616

07/12/2019, 7:19 PM
also, thanks @witty-crayon-22786 for showing the alternative to the above special syntax:
Copy code
@rule(Assembler, [NativeToolchain, Platform.Linux])
def select_assembler_linux(native_toolchain, _):
  assembler = yield Get(Assembler, Binutils, native_toolchain._binutils)
  yield assembler
this is much cooler!