1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed mymake to recompile language.cpp if language-data.cpp changed

This commit is contained in:
Zeno Rogue 2021-07-10 22:05:30 +02:00
parent 4799f7c5f7
commit df7d8ee5fc

View File

@ -322,6 +322,9 @@ int main(int argc, char **argv) {
exit(1);
}
time_t obj_time = get_file_time(obj);
if(src == "language.cpp") {
src_time = max(src_time, get_file_time("language-data.cpp"));
}
if(src_time > obj_time) {
string cmdline = compiler + " " + opts + " " + src + " -o " + obj;
pair<int, function<int(void)>> task(id, [cmdline]() { return mysystem(cmdline); });