jhuber6 wrote:

> Clang has two save-temps modes: --save-temps (same as --save-temps=cwd) puts 
> files in the current working directory, while --save-temps=obj puts them next 
> to the output file. After this change, the linker wrapper always uses the 
> output file's directory, which matches --save-temps=obj but diverges from the 
> default --save-temps=cwd behavior. Should we check which mode was requested 
> and preserve the CWD behavior for the default case?

Yeah it's a little tough because it's shared between three places now, clang, 
lld, and linker-wrapper. `lld` just dumps it next to the obj by default I 
believe. I wonder if we could make this more consistent.

https://github.com/llvm/llvm-project/pull/198679
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to