Re: [PATCH v2] Kbuild: fix issues with rustc-option
From: Matthew Maurer
Date: Tue Oct 08 2024 - 16:23:19 EST
On Tue, Oct 8, 2024 at 1:22 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> On Tue, Oct 8, 2024 at 8:25 PM Matthew Maurer <mmaurer@xxxxxxxxxx> wrote:
> >
> > Err, slight amendment - I think you want `-o $$TMP`, and not
> > `--out-dir $$TMPOUT`
>
> We need the `--out-dir` to avoid temporary files being created in the
> current working directory.
In that case we should omit `-o $$TMP`, because `rustc` is emitting a
warning that it's ignoring `--out-dir` because `-o` is set.
>
> Cheers,
> Miguel