Swift definitely uses CMAKE_Swift_FLAGS. I don’t believe there is an environment variable hooked up to control it though.
CMAKE_Swift_FLAGS