I'm working on the stdlib (specifically the _Differentiation module) and looking at improving the developer experience a little bit. Whenever I use either a local swift build or a snapshot from swift.org. It's hard to use the regular swift package manager tools like swift run and swift test as I have to point to the updated libswift_Differentiation.dylib using DYLD_LIBRARY_PATH but these get stripped by System Integrity Protection if I understand correctly.
Otherwise I'd simply set that environment variable and be done.
Is there a way to make swift run or swift test pass this variable along? Currently I can't run tests from a swift package because of this. For direct executables I can sort of get around it by building and then setting the environment variable when using the executable directly. But I have not been able to get tests working at all for now unfortunately.
Any help would be greatly appreciated!