Why not try unorthodox solutions: cap engineering salaries so men no longer rush to fill the jobs.
If the pay dropped, I have a strong feeling that the calls for increased diversity in tech would cease quickly, replaced with complaints about diversity in accountancy or some other high net worth career.