Open shubhbapna opened 1 month ago
Is it possible to have package plugins specific to a variant instead of using if ctx.variant.startswith("varinat") everywhere in plugin code
if ctx.variant.startswith("varinat")
One idea is to check for a function with normalized variant name as suffix, e.g. first look for prepare_source_cuda, then for prepare_source, and then fall back to default_prepare_source.
prepare_source_cuda
prepare_source
default_prepare_source
Is it possible to have package plugins specific to a variant instead of using
if ctx.variant.startswith("varinat")
everywhere in plugin code