This reverts r369486 (git commit
8d18384809957cc923752e10a86adab129e3df48)
The opt-viewer tests don't pass after this change, and fixing them isn't
trivial. opt-viewer.py imports optmap, which requires adjusting
pythonpath, which is more work than I'm willing to do to fix forward.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370095
91177308-0d34-0410-b5e6-
96231b3b80d8
message(FATAL_ERROR "Python 2.7 or newer is required")
endif()
-get_filename_component(PYTHON_BASENAME ${PYTHON_EXECUTABLE} NAME)
-
######
# LLVMBuild Integration
#
set (files
- "optpmap.py"
- "style.css")
-
-set (generated_files
"opt-diff.py"
"opt-stats.py"
"opt-viewer.py"
- "optrecord.py")
-
-foreach (file ${generated_files})
- configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/${file}.in
- ${CMAKE_CURRENT_BINARY_DIR}/${file})
-endforeach (file)
+ "optpmap.py"
+ "optrecord.py"
+ "style.css")
foreach (file ${files})
install(PROGRAMS ${file}
DESTINATION share/opt-viewer
COMPONENT opt-viewer)
endforeach (file)
-
-
-foreach (file ${generated_files})
- install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${file}
- DESTINATION share/opt-viewer
- COMPONENT opt-viewer)
-endforeach (file)
-#!/usr/bin/env @PYTHON_BASENAME@
+#!/usr/bin/env python
from __future__ import print_function
-#!/usr/bin/env @PYTHON_BASENAME@
+#!/usr/bin/env python
from __future__ import print_function
-#!/usr/bin/env @PYTHON_BASENAME@
+#!/usr/bin/env python
from __future__ import print_function
-#!/usr/bin/env @PYTHON_BASENAME@
+#!/usr/bin/env python
from __future__ import print_function