rustc_codegen_cranelift icon indicating copy to clipboard operation
rustc_codegen_cranelift copied to clipboard

Fix CG_CLIF_JIT_ARGS on Linux, macOS and Windows

Open bjorn3 opened this issue 5 years ago • 6 comments

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.

bjorn3 avatar Jun 20 '20 10:06 bjorn3

The same problem seems to exist on macOS and Windows. On macOS libstd uses _NSGetArgv. On Windows libstd uses GetCommandLineW.

bjorn3 avatar Jun 20 '20 11:06 bjorn3