A shortage of glass is taking a toll on the nation’s commercial building boom, adding millions of dollars to the cost of new skyscrapers and halting some projects midway through construction.

Demand is soaring for the metal-framed glass panels, or curtain wall, used to sheath skyscrapers. Those buildings need a lot of glass—hundreds of thousands of square feet for a typical high-rise office tower.

Glass...