[LLVMbugs] [Bug 22976] New: Python "print" statement used for defining ECHOPATH on mingw32
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 21 15:45:04 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=22976
Bug ID: 22976
Summary: Python "print" statement used for defining ECHOPATH on
mingw32
Product: Build scripts
Version: 3.6
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Makefiles
Assignee: unassignedbugs at nondot.org
Reporter: valtron2000 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In line 829 of Makefile.rules (3.6.0 source), python2 is assumed:
ifeq (-mingw32,$(findstring -mingw32,$(BUILD_TRIPLE)))
ECHOPATH := $(Verb)$(PYTHON) -u -c "import sys;print '
'.join(sys.argv[1:])"
else
ECHOPATH := $(Verb)$(ECHO)
endif
It can be made py2/3 compatible by using the function form of print:
ECHOPATH := $(Verb)$(PYTHON) -u -c "import sys;print('
'.join(sys.argv[1:]))"
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150321/c86c4d6e/attachment.html>
More information about the llvm-bugs
mailing list