U.S. President Donald Trump threatened on Tuesday to cut subsidies for General Motors after the largest U.S. automaker said it would halt production at five plants in North America and cut nearly 15,000 jobs.

"The U.S. saved General Motors, and this is the THANKS we get! We are now looking at cutting all @GM subsidies, including ... for electric cars," Trump said on Twitter.

Trump has made boosting auto jobs a key priority during his almost two years in office and has often attacked automakers on Twitter for not doing enough to boost U.S. employment.

ëëë í¸ë¼í ë¯¸êµ­ ëíµë ¹ì´ 26ì¼ ìì FILE - President Donald Trump speaks at a rally in Biloxi, Miss., Nov. 26, 2018. FILE - President Donald Trump speaks at a rally in Biloxi, Miss., Nov. 26, 2018.

GM electric vehicles are eligible for a $7,500 tax credit under federal law, but it is not clear how the administration could restrict those credits or if Trump had other subsidies in mind. GM shares extended earlier declines and were down 3.6 percent after Trump's tweets.

GM declined to immediately comment.

GM Chief Executive Mary Barra spoke to Trump over the weekend to discuss the cuts and was at the White House on Monday to meet with economic adviser Larry Kudlow.

Trump also criticized GM for not closing facilities in Mexico or China.

"General Motors made a big China bet years ago when they built plants there (and in Mexico) - don't think that bet is going to pay off. I am here to protect America's Workers!" Trump wrote on Twitter.

GM currently builds just one vehicle in China that it exports to the United States — the Buick Envision — and has sold about 22,000 through September. GM sold nearly 2.7 million vehicles in China through September, nearly all of them built in China for the market.

White House spokesman Sarah Sanders told reporters Tuesday that the president is looking at options.

"The president wants to see American companies build cars here in America, not build them overseas and he is hopeful that GM will continue to do that here," she said.

General Motors Restructuring Signs hang from windows at the UAW Local 1112 union hall in Lordstown, Ohio, Nov. 27, 2018. Even though unemployment is low, the economy is growing and U.S. auto sales are near historic highs, GM is cutting thousands of jobs in a major restructuring aimed at generating cash to spend on innovation. Signs hang from windows at the UAW Local 1112 union hall in Lordstown, Ohio, Nov. 27, 2018. Even though unemployment is low, the economy is growing and U.S. auto sales are near historic highs, GM is cutting thousands of jobs in a major restructuring aimed at generating cash to spend on innovation.

GM has been lobbying Congress, along with Tesla, to lift the current cap on electric vehicles eligible for tax credits, but any action by Congress before 2019 is a long-shot, congressional aides said.

Under current law, once a manufacturer sells 200,000 electric vehicles, the tax credit phases out over time starting in the following quarter. GM has said it expects to hit the 200,000-vehicle threshold by the end of the year.

GM announced Monday it will halt production at one Canadian plant and four U.S. factories, including the Detroit-Hamtramck Assembly plant that builds the plug-in hybrid electric Chevrolet Volt. GM is ending production of six vehicles, including the Volt, as it cuts more than 6,500 factory jobs.

GM will continue to build the electric Chevrolet Bolt in Michigan.

Trump told GM on Monday it "better" find a new product for Lordstown Assembly plant in Ohio that will halt production in March. GM has said sagging demand for small cars largely prompted the cuts, but also cited factors including higher costs from U.S. tariffs on steel and aluminum.

GM said it also plans to close two unnamed plants outside North America by the end of 2019.