Re: [PATCH v2 2/3] randstruct: Force full rebuild when seed changes

2025-05-03 Thread Kees Cook
On Sat, May 03, 2025 at 03:13:06PM +0900, Masahiro Yamada wrote: > On Sat, May 3, 2025 at 7:54 AM Kees Cook wrote: > > +$(obj)/randstruct_hash.h $(obj)/randstruct.seed: $(gen-randstruct-seed) > > FORCE > > $(call if_changed,create_randstruct_seed) > [...] > So, this rule is executed twice

Re: [PATCH v2 2/3] randstruct: Force full rebuild when seed changes

2025-05-02 Thread Masahiro Yamada
On Sat, May 3, 2025 at 7:54 AM Kees Cook wrote: > > While the randstruct GCC plugin was being rebuilt if the randstruct > seed changed, Clangs build did not notice the change. Include the hash > header directly so that it becomes a universal build dependency and full > rebuilds will happen if it c

[PATCH v2 2/3] randstruct: Force full rebuild when seed changes

2025-05-02 Thread Kees Cook
While the randstruct GCC plugin was being rebuilt if the randstruct seed changed, Clangs build did not notice the change. Include the hash header directly so that it becomes a universal build dependency and full rebuilds will happen if it changes. Since we cannot use "-include ..." as the randstru