Flatten should also handle ALWAYS_BUILD.