Configtool: work around a ld.exe problem.
See committed comment for details. This is related to issue #158.
This commit is contained in:
parent
b74b066db5
commit
f9d0a1bf35
|
|
@ -228,6 +228,14 @@ class Build(wx.Dialog):
|
|||
self.script = []
|
||||
cmdpath = ScriptTools(self.settings).figureCommandPath("avr-gcc")
|
||||
|
||||
# This is ugly:
|
||||
# Work around a problem of avr-ld.exe coming with Arduino 1.6.4 for
|
||||
# Windows. Without this it always drops this error message:
|
||||
# collect2.exe: error: ld returned 5 exit status 255
|
||||
# Just enabling verbose messages allows ld.exe to complete without failure.
|
||||
if platform == "win32":
|
||||
cmdpath += " -Wl,-V"
|
||||
|
||||
ofiles = ["\"" + join(self.root, "build", f) + "\""
|
||||
for f in os.listdir(join(self.root, "build"))
|
||||
if isfile(join(self.root, "build", f)) and f.endswith(".o")]
|
||||
|
|
|
|||
Loading…
Reference in New Issue