Skip to content

Commit a8fbd59

Browse files
IOTBTOOL-333: Fix SimpleQueue build failure on py3
Build system was using an internal feature of the Pool class that is unavailable in a py3 system. This would cause an exception if tool execution failed. Offending code has now been removed
1 parent 3254ec3 commit a8fbd59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/toolchains/mbed_toolchain.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,7 @@ def compile_queue(self, queue, objects):
556556
])
557557
objects.append(result['object'])
558558
except ToolException as err:
559-
if p._taskqueue.queue:
560-
p._taskqueue.queue.clear()
561-
sleep(0.5)
559+
# Stop the worker processes immediately without completing outstanding work
562560
p.terminate()
563561
p.join()
564562
raise ToolException(err)

0 commit comments

Comments
 (0)