don't run codegen/optimizer twice if -dynamic-too is enabled