ref: 052d543c45844d9a34312c81baa6b665c80ab19f
parent: 0b7ef3870dbd708ab71a657dca0e26073036acb7
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 4 10:51:59 EST 2015
Make myrbuild just build everything. It is now just a bootstrap tool.
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -145,18 +145,6 @@
die("%s: exited with signal %d\n", cmd[0], WTERMSIG(status));
}
-int isfresh(char *from, char *to)
-{
- struct stat from_sb, to_sb;
-
- if (stat(from, &from_sb))
- fail(1, "Could not find %s\n", from);
- if (stat(to, &to_sb) == -1)
- return 0;
-
- return from_sb.st_mtime <= to_sb.st_mtime;
-}
-
int inlist(char **list, size_t sz, char *str)
{
size_t i;
@@ -300,10 +288,6 @@
scrapelib(libgraph, deps[i]);
}
}
- if (isfresh(file, use))
- goto done;
- if (isfresh(file, obj))
- goto done;
if (genasm)
extra[nextra++] = "-S";
gencmd(&cmd, &ncmd, mc, file, extra, nextra);
@@ -310,8 +294,6 @@
run(cmd);
} else if (hassuffix(file, ".s")) {
swapsuffix(obj, sizeof obj, file, ".s", Objsuffix);
- if (isfresh(file, obj))
- goto done;
for (i = 1; as[i]; i++)
extra[nextra++] = as[i];
extra[nextra++] = obj;
@@ -318,7 +300,6 @@
gencmd(&cmd, &ncmd, as[0], file, extra, nextra);
run(cmd);
}
-done:
s = strdup(file);
htput(compiled, s, s);
htdel(loopdetect, file);