driver: Only run a dynamic-too pipeline if object files are going to be generated
driver: Only run a dynamic-too pipeline if object files are going to be generated
Otherwise we run into a panic in hscMaybeWriteIface: "Unexpected DT_Dyn state when writing simple interface" when dynamic-too is enabled
We could remove the panic and just write the interface even if the state is DT_Dyn,
but it seems pointless to run the pipeline twice when hscMaybeWriteIface is already
designed to write both hi and dyn_hi files if dynamic-too is enabled.
Fixes #23944 (closed).