mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-09 22:24:14 +03:00
Appled Hans Steiner's patch to search for avr=tools in path on Linux (instead of requiring symlinks to the Arduino tools directory). Added an upload.verbose preference for dumping details of the upload process.
This commit is contained in:
@@ -40,9 +40,18 @@ public class Sizer implements MessageConsumer {
|
||||
|
||||
public long computeSize() throws RunnerException {
|
||||
String userdir = System.getProperty("user.dir") + File.separator;
|
||||
String avrBasePath;
|
||||
if(Base.isMacOS()) {
|
||||
avrBasePath = new String("tools/avr/bin/");
|
||||
}
|
||||
else if(Base.isLinux()) {
|
||||
avrBasePath = new String("");
|
||||
}
|
||||
else {
|
||||
avrBasePath = new String(userdir + "tools/avr/bin/");
|
||||
}
|
||||
String commandSize[] = new String[] {
|
||||
((!Base.isMacOS()) ? "tools/avr/bin/avr-size" :
|
||||
userdir + "tools/avr/bin/avr-size"),
|
||||
avrBasePath + "avr-size",
|
||||
" "
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user