extras: halide: handle variants, for cross-compilation