Ok, I believe I undestand the ENV issue now. As an aside, one thing that is still confusing is that
brew help install still shows options like
—env=super which doesn’t seem to work anymore. Is that a bug? Or do docs need to be updated to remove that?
Another issue I came across with the glfw formula and its Vulkan integration is that the current stable release of glfw does not properly build with Vulkan. Something about the paths of the Vulkan SDK changed, so it broke some assumptions of glfw 3.2.1. However, that was fixed in a later commit, so right now you have to use the —HEAD option to build without errors. I think I’ll try putting an issue with the glfw github repo to ask them to tag their working vulkan commit so that there is a release to use with brew (to avoid having to download an unversioned commit).
Is it possible for a formula option to force a build from source rather than install from bottle? Currently that is what glfw requires to enable its Vulkan features.
Regarding a formula instead of cask, I put the cask out there just to make vulkan available ASAP. I’m willing to try putting a regular from source formula together, but I’d need help from those more experienced with brew. In a day or so, I’ll start a thread here to get feedback for that.