Boston Mayor Martin J. Walsh joined a growing chorus of U.S. leaders offering to accept some of the hundreds of thousands of refugees pouring out of war-torn areas in Africa and the Middle East.

“We would be willing to take migrants if they have them — that situation is still trying to figure itself out particularly in Europe,” Walsh told the Herald. “No one has contacted us about the migrants. We are waiting to see what happens and what the situation is.

“If we needed to, we would take them,” he added.

In an interview that aired yesterday on Herald Radio, GOP presidential hopeful Marco Rubio said he would be open to the United States housing some of the refugees flooding Europe, provided they were not connected to any terror organization.