Skip to content

Commit

Permalink
dont delete cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Dec 25, 2023
1 parent 0ce1186 commit 42ad8f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static boolean isUnix() {
public String libPrefix = "";
public String libName = "";
public String libDirSuffix = "";
public String linkObjSuffix = ".o";

public boolean shouldCompile = true;
public boolean shouldLink = true;
Expand Down Expand Up @@ -104,7 +105,6 @@ private boolean compile(BuildConfig config, CustomFileDescriptor childTarget, Ar
compilerCommands.add("@" + cppList.path());
System.out.println("##### COMPILE #####");
boolean flag = JProcess.startProcess(config.buildDir.file(), compilerCommands);
cppList.delete();
if(!flag) {
return false;
}
Expand Down Expand Up @@ -164,7 +164,7 @@ private boolean link(BuildConfig config, CustomFileDescriptor childTarget) {
String libPath = libsDir + "/" + fullLibName;

ArrayList<CustomFileDescriptor> compiledObjects = new ArrayList<>();
getAllFiles(childTarget, compiledObjects, "");
getAllFiles(childTarget, compiledObjects, linkObjSuffix);

String compiledPaths = "";
for(CustomFileDescriptor file : compiledObjects) {
Expand Down

0 comments on commit 42ad8f3

Please sign in to comment.