Improve mkdeps

Our makefile generator now accepts badly formatted include lines. It's
now more hermetic with better error checking in the cosmo repo, and it
can be configured to not be hermetic at all.
This commit is contained in:
Justine Tunney 2023-11-10 04:14:27 -08:00
parent 241f949540
commit d2f49ca175
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
69 changed files with 466 additions and 533 deletions

View file

@ -91,8 +91,10 @@ void testlib_runtestcases(const testfn_t *start, const testfn_t *end,
// the linker sorts into an array.
char host[64];
struct Dll *e;
const char *user;
const testfn_t *fn;
struct TestAspect *a;
user = getenv("USER");
strcpy(host, "unknown");
gethostname(host, sizeof(host)), errno = 0;
for (fn = start; fn != end; ++fn) {
@ -111,7 +113,7 @@ void testlib_runtestcases(const testfn_t *start, const testfn_t *end,
if (warmup) warmup();
testlib_clearxmmregisters();
STRACE("");
STRACE("# running test %t on %s@%s", fn, __getenv(environ, "USER").s, host);
STRACE("# running test %t on %s@%s", fn, user, host);
(*fn)();
STRACE("");
STRACE("# tearing down %t", fn);