cc-rs icon indicating copy to clipboard operation
cc-rs copied to clipboard

Pass `--remap-path-prefix` to C compilers

Open TheBlueMatt opened this issue 4 years ago • 1 comments

It would be nice to be able to pass the path remapping stuff from rustc to dependent code to avoid non-determinism slipping in via C dependencies. Presumably this would need to check if the C compiler supports -ffile-prefix-map (at least locally, that's just clang, not GCC).

TheBlueMatt avatar Mar 24 '21 15:03 TheBlueMatt

It seems to be possible to parse CARGO_ENCODED_RUSTFLAGS environment variable and simply pass on the reassignments.

dot-asm avatar Mar 11 '22 21:03 dot-asm