1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

mymake accepts modules with *.cpp extension

This commit is contained in:
Zeno Rogue 2019-09-28 18:18:00 +02:00
parent a4418d6dcc
commit 0c72130ed8

View File

@ -81,7 +81,11 @@ int main(int argc, char **argv) {
}
else if(s.substr(0, 2) == "-I")
linker += " " + s;
else modules.push_back(s);
else {
if(s.size() >= 5 && s.substr(s.size() - 4) == ".cpp")
s = s.substr(0, s.size() - 4);
modules.push_back(s);
}
}
if(!optimized)
compiler += " -g3";