swift
cd27c912 - [test][Reflection] reflect_Enum_values_resilient: upload resilient_enums.dylib for remote-run

Commit
17 days ago
[test][Reflection] reflect_Enum_values_resilient: upload resilient_enums.dylib for remote-run The test binary links libresilient_enums.dylib with an @executable_path/libresilient_enums.dylib install_name. Under remote-run, the dylib needs to be uploaded next to the binary for that to resolve. remote-run only rsyncs files whose paths appear as a whole argv slot or as a REMOTE_RUN_CHILD_* env-var value (substring matches don't count), so the dylib has to be referenced somewhere on the command line in one of those positions. swift-reflection-test rejects extra positional args, so we can't simply append the dylib path. Wrapping in 'sh -c' would work but breaks on iOS where /bin/sh isn't reliably available. Instead, set a dummy %env-_EXTRA_DYLIB env var to the dylib path: remote-run's EnvVarProcessor runs every REMOTE_RUN_CHILD_* value through the same upload logic as argv, so the dylib gets rsynced. The env var itself is inert in the remote process.
Author
Parents
Loading