Skip to content

Commit 43a11be

Browse files
committed
Cleaned up some of the code. Need to focus getting the 1.0 code compilation changes double checked.
1 parent aa01546 commit 43a11be

File tree

1 file changed

+3
-57
lines changed

1 file changed

+3
-57
lines changed

app/src/processing/app/debug/Compiler.java

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -178,21 +178,14 @@ public boolean compile(Sketch sketch,
178178
// 1. compile the sketch (already in the buildPath)
179179
System.out.println("1. compileSketch");
180180
compileSketch(avrBasePath, buildPath, includePaths, configPreferences);
181-
/*
182-
objectFiles.addAll(
183-
compileFiles(avrBasePath, buildPath, includePaths,
184-
findFilesInPath(buildPath, "S", false),
185-
findFilesInPath(buildPath, "c", false),
186-
findFilesInPath(buildPath, "cpp", false),
187-
boardPreferences));
188-
*/
181+
189182

190183
// 2. compile the libraries, outputting .o files to: <buildPath>/<library>/
191184
// 2. compile the libraries, outputting .o files to:
192185
// <buildPath>/<library>/
193186
//Doesn't really use configPreferences
194-
System.out.println("2. compileLibraries");
195-
compileLibraries(avrBasePath, buildPath, includePaths, configPreferences);
187+
System.out.println("2. compileLibraries");
188+
compileLibraries(avrBasePath, buildPath, includePaths, configPreferences);
196189
/*
197190
198191
for (File libraryFolder : sketch.getImportedLibraries()) {
@@ -315,53 +308,6 @@ public boolean compile(Sketch sketch,
315308
*/
316309

317310
return true;
318-
/*
319-
320-
logger.debug("corePaths: " + this.corePath);
321-
322-
323-
this.objectFiles = new ArrayList<File>();
324-
325-
// 0. include paths for core + all libraries
326-
logger.debug("0. getIncludes");
327-
this.includePaths = getIncludes(this.corePath);
328-
329-
// 1. compile the sketch (already in the buildPath)
330-
logger.debug("1. compileSketch");
331-
compileSketch(avrBasePath, buildPath, includePaths, configPreferences);
332-
333-
// 2. compile the libraries, outputting .o files to:
334-
// <buildPath>/<library>/
335-
//Doesn't really use configPreferences
336-
logger.debug("2. compileLibraries");
337-
compileLibraries(avrBasePath, buildPath, includePaths, configPreferences);
338-
339-
// 3. compile the core, outputting .o files to <buildPath> and then
340-
// collecting them into the core.a library file.
341-
logger.debug("3. compileCore");
342-
compileCore(avrBasePath, buildPath, this.corePath, configPreferences);
343-
344-
// 4. link it all together into the .elf file
345-
logger.debug("4. compileLink");
346-
compileLink(avrBasePath, buildPath, this.corePath, includePaths, configPreferences);
347-
348-
// 5. extract EEPROM data (from EEMEM directive) to .eep file.
349-
logger.debug("5. compileEep");
350-
compileEep(avrBasePath, buildPath, includePaths, configPreferences);
351-
352-
// 6. build the .hex file
353-
logger.debug("6. compileHex");
354-
compileHex(avrBasePath, buildPath, includePaths, configPreferences);
355-
356-
//done
357-
logger.debug("7. compile done");
358-
return true;
359-
360-
361-
362-
*/
363-
364-
365311
}
366312

367313

0 commit comments

Comments
 (0)