Clint Eastwood just made Donald Trump’s day.

Dirty Harry, aka The Man with No Name, Hollywood’s legendary gunman, told Esquire magazine the Republican presidential candidate is “on to something.”

In the age of what he’s calling the “kiss-ass generation,” the actor-director of “Gran Torino” and “Unforgiven” hailed Trump as a foe of political correctness.

“Everybody’s walking on eggshells,” said Eastwood, 86. “We see people accusing people of being racist and all kinds of stuff. When I grew up, those things weren’t called racist.”

Eastwood urged people to “get over it.”

“What Trump is on to is he’s just saying what’s on his mind. And sometimes it’s not so good. And sometimes it’s, I mean, I can understand where he’s coming from, but I don’t always agree with it,” he said.

Eastwood said he wasn’t endorsing anyone for president. But asked to choose between Trump and Democratic nominee Hillary Clinton, he said, “I’d have to go for Trump, you know, ’cause she’s declared that she’s gonna follow in Obama’s footsteps. There’s been just too much funny business on both sides of the aisle.”

Eastwood’s latest movie, “Sully” — about Capt. Chesley “Sully” Sullenberger, the airline pilot who became a national hero when he safely landed a US Airways plane on the Hudson River off Manhattan in 2009 — opens in September.