fix build problem when make command have trailing whitespace(s)
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 27 Jun 2017 13:30:48 +0300
changeset 1709 1e8900fc8ddb
parent 1708 24416137cda7
child 1710 953ceea2573e
fix build problem when make command have trailing whitespace(s)

whitespaces at the end are replaced with "", that causes make problem
targets/toolchain_makefile.py
--- a/targets/toolchain_makefile.py	Mon Jun 26 19:42:42 2017 +0300
+++ b/targets/toolchain_makefile.py	Tue Jun 27 13:30:48 2017 +0300
@@ -110,7 +110,7 @@
                              }
             
             # clean sequence of multiple whitespaces 
-            cmd = re.sub(r"[ ]+", " ", target.getCommand())
+            cmd = re.sub(r"[ ]+", " ", target.getCommand().strip())
 
             command = [ token % beremizcommand for token in cmd.split(' ')]