Skip to content

Commit 9aaf2ec

Browse files
author
Rei Vilo
committed
Merge pull request energia#62 from energia/issue_62
Add -DENERGIA=101 Pre-Processor Option for gcc and g++
2 parents 7dcbaa0 + 207b7e1 commit 9aaf2ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/processing/app/Base.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* files and images, etc) that comes from that.
4343
*/
4444
public class Base {
45-
public static final int REVISION = 101;
45+
public static final int REVISION = 6;
4646
/** This might be replaced by main() if there's a lib/version.txt file. */
4747
static String VERSION_NAME = "0101E0006";
4848
/** Set true if this a proper release rather than a numbered revision. */

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static private List getCommandCompilerS(String basePath, List includePaths,
578578
"-g", // include debugging info (so errors include line numbers)
579579
"-mmcu=" + boardPreferences.get("build.mcu"),
580580
"-DF_CPU=" + boardPreferences.get("build.f_cpu"),
581-
"-DARDUINO=" + Base.REVISION,
581+
"-DENERGIA=" + Base.REVISION,
582582
}));
583583
} else {
584584
baseCommandCompiler = new ArrayList(Arrays.asList(new String[] {
@@ -619,7 +619,7 @@ static private List getCommandCompilerC(String basePath, List includePaths,
619619
"-fdata-sections",
620620
"-mmcu=" + boardPreferences.get("build.mcu"),
621621
"-DF_CPU=" + boardPreferences.get("build.f_cpu"),
622-
"-DARDUINO=" + Base.REVISION,
622+
"-DENERGIA=" + Base.REVISION,
623623
}));
624624
} else { // default to avr
625625
baseCommandCompiler = new ArrayList(Arrays.asList(new String[] {
@@ -666,7 +666,7 @@ static private List getCommandCompilerCPP(String basePath,
666666
"-fdata-sections",
667667
"-mmcu=" + boardPreferences.get("build.mcu"),
668668
"-DF_CPU=" + boardPreferences.get("build.f_cpu"),
669-
"-DARDUINO=" + Base.REVISION,
669+
"-DENERGIA=" + Base.REVISION,
670670
}));
671671
} else { // default to avr
672672
baseCommandCompilerCPP = new ArrayList(Arrays.asList(new String[] {

0 commit comments

Comments
 (0)