I believe George Washington had a couple of soldiers executed in the Continental Army for sodomy. Times change, attitudes change.
If people are executed for being gay, or for engaging in a homosexual sex act, the result, either way, is that they have a clear legal basis to demand sanctuary in the West as a refugee.
Either they stay in their own country or they emigrate to yours.