no message
This commit is contained in:
@@ -249,8 +249,10 @@ public class UserConnection {
|
||||
putSingleFile(src, dst);
|
||||
}
|
||||
boolean compileModule(RemoteFile modulesDirectory, String module_name) throws Exception {
|
||||
String flags = module_name.equals("planner") ? getAvailibleCPPStandard(modulesDirectory) : "";
|
||||
boolean planner = module_name.equals("planner");
|
||||
String flags = planner ? getAvailibleCPPStandard(modulesDirectory) : "";
|
||||
String command = "g++ -O3 " + flags + " " + Utils_.DQuotes(module_name + ".cpp") + " -o " + Utils_.DQuotes(module_name);
|
||||
if (planner&& flags.contains("c++17")) command+=" -lstdc++fs";
|
||||
RemoteFile binary = new RemoteFile(modulesDirectory, module_name);
|
||||
//--
|
||||
if (Exists(binary))
|
||||
@@ -289,7 +291,7 @@ public class UserConnection {
|
||||
}
|
||||
}
|
||||
if (cpp_17)
|
||||
res = "-std=c++17 -lstdc++fs";
|
||||
res = "-std=c++17";
|
||||
else if (cpp_11)
|
||||
res = "-std=c++11";
|
||||
RemoteFile cppFlag = new RemoteFile(scriptDirectory, "current_ccp_version");
|
||||
|
||||
Reference in New Issue
Block a user