Gov. Charlie Baker on Thursday said he’s ready to veto the gas tax hike passed by the Massachusetts House of Representatives if the Senate also passes it and it makes it to his desk.

“First of all, we have a long way to go in this process,” Baker said. “I don’t really like to speculate about that stuff, but I said before that we don’t support a gas tax and if one were to come through we would veto it.”

The governor said an increase in the tax would put Massachusetts in an “anti-competitive position with folks on the other side of the border.”

“And it doesn’t do much for climate,” he added. “We have an $18 million bond bill that’s currently before the Legislature. That will give us the dry powder to do a ton of work on local roads, state roads and public transportation. And I hope that something like that bill emerges from this process before the end of the session.”

The House passed a major tax bill Wednesday night that Democratic leaders say would generate more than half a billion dollars for transportation infrastructure by increasing taxes or fees on gasoline, corporations, ride-hailing services and vehicle purchases by rental car companies.

Under the bill, which Democratic leaders project will bring in $522 million to $612 million per year, the state’s 24-cents-per-gallon gasoline and diesel taxes would increase by 5 cents and 9 cents, respectively.