[GHC] #10923: GHC should recompile if flags change