mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 03:44:59 +00:00
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:
parent
ae56e593b9
commit
2f2feebf4d
@ -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
|
||||
#
|
||||
|
@ -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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env @PYTHON_BASENAME@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env @PYTHON_BASENAME@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env @PYTHON_BASENAME@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env @PYTHON_BASENAME@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
|
Loading…
Reference in New Issue
Block a user