aboutsummaryrefslogtreecommitdiffstats
path: root/executor/embed.go
Commit message (Collapse)AuthorAgeFilesLines
* executor: fix embeding of headersDmitry Vyukov2024-05-081-5/+9
| | | | | | | | | | common_usb.h is included by both common_linux.h and common_netbsd.h. The current version may fail to replace one of these common_usb.h, if say common_linux.h is already replaced, but common_netbsd.h is not yet. Make the replacement algorithm more robust and just replace everything on each iteration until we can't replace anything anymore. Fixes #4783
* pkg/csource: replace go:generate with go:embedDmitry Vyukov2024-05-081-0/+73
go:embed is a more modern way to do this and it does not require a special Makefile step. Since go:embed cannot use paths that contains "..", the actual embeding is moved to executor package.