rustc_codegen_cranelift
rustc_codegen_cranelift copied to clipboard
Fix CG_CLIF_JIT_ARGS on Linux, macOS and Windows
On Linux since 5c6bf836fe3d4cfda1b827a5cd3982e5a588c0ff, the arguments passed to libstd by glibc when dlopening it are used, which are the arguments of the rustc process, not those in CG_CLIF_JIT_ARGS.
The same problem seems to exist on macOS and Windows. On macOS libstd uses _NSGetArgv. On Windows libstd uses GetCommandLineW.