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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs