You don’t even have to compile it, at least not on Mojave. You just have to set a setting in security and right click on an application to open it