Преглед на файлове

修正切换scons版本(比如最新的4.3.0)后,编译时在"scons: Reading SConscript files ..."后打印出"b''"的问题

liruncong преди 3 години
родител
ревизия
ed712069ef
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tools/gcc.py

+ 1 - 1
tools/gcc.py

@@ -113,7 +113,7 @@ def GCCResult(rtconfig, str):
         stdout, stderr = child.communicate()
 
         # print(stdout)
-        if stderr != '':
+        if stderr != '' and stderr != b'':
             print(stderr)
 
         have_fdset = 0