How to work around "select is not iterable" in a macro?

I have a macro called ispc_cc_library. I call it in a BUILD.bazel file this way: COMMON_DEFINES = select({ "@platforms//os:osx": [ "OIDN_BNNS", "OIDN_STATIC_LIB", "OIDN_FILTER_RT", "OIDN_FILTER_RTLIGHTMAP", ], "//conditions:default": [ "OIDN_DNNL", "OIDN_STATIC_LIB", "OIDN_FILTER_RT", "OIDN_FILTER_RTLIGHTMAP", ], }) ispc_cc_library( name = "input_reorder_ispc", srcs = [ "core/color.isph", "core/image.isph", "core/input_reorder.ispc", "core/math.isph", "core/reorder.isph", "core/tensor.isph", "core/vec.isph", ], out = "input_reorder_ispc.h", defines = COMMON_DEFINES, ispc_main_source_file… Read More How to work around "select is not iterable" in a macro?