Revert Autogenerate the shebang lines for tools/opt-viewer

This reverts r369486 (git commit 8d18384809)

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.

llvm-svn: 370095
This commit is contained in:
Reid Kleckner 2019-08-27 18:31:29 +00:00
parent ae56e593b9
commit 2f2feebf4d
6 changed files with 7 additions and 24 deletions

View File

@ -660,8 +660,6 @@ if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
message(FATAL_ERROR "Python 2.7 or newer is required")
endif()
get_filename_component(PYTHON_BASENAME ${PYTHON_EXECUTABLE} NAME)
######
# LLVMBuild Integration
#

View File

@ -1,28 +1,13 @@
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)

View File

@ -1,4 +1,4 @@
#!/usr/bin/env @PYTHON_BASENAME@
#!/usr/bin/env python
from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env @PYTHON_BASENAME@
#!/usr/bin/env python
from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env @PYTHON_BASENAME@
#!/usr/bin/env python
from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env @PYTHON_BASENAME@
#!/usr/bin/env python
from __future__ import print_function