mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
mymake accepts modules with *.cpp extension
This commit is contained in:
parent
a4418d6dcc
commit
0c72130ed8
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user