I'm not following why the symlinks are a problem... Could you explain that
more? I've used gdb with gem5 and not had any troubles from that. Using
files from the build directory keeps (or at least helps keep) things from
leaking into the source directory that don't belong there, and when
building 10 different variants, it avoids making 10 copies of the source
tree. I'm pretty strongly in favor of leaving this as is, but I'm always
willing to be enlightened :-).

Gabe

On Thu, Dec 6, 2018 at 10:13 AM Ciro Santilli <[email protected]> wrote:

> The build symlinks every .cc files from the build directory into the
> source directory by default, and it annoys me quite a lot, since when
> using GDB I go into the build directory instead of source.
>
> Today I was studying the build system, and I learned that that this is
> an SCons feature of variant dirs, which does hardlinks by default, but
> which we force to generate symlinks on gem5 with:
>
> main.SetOption('duplicate', 'soft-copy')
>
> I then saw that it is possible to turn off the symlinks / hardlinks and
> just use the source directly, at least on a per variant directory basis
> with:
>
> SConscript(variant_dir=, duplicate=0)
>
> So I ask you the following:
>
> 1. do you know of a way to turn the duplication off by default in one go
> for all variant dirs?
> 2. if such method exists, and I made a patch that implements it by
> default, would you be favorable to such change? Or do you rely on the
> symlinks for some functionality?
>
> CC @Gabe as I've been told you were planning to do something about the
> variants in the build system some time ago.
>
>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to