mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Revert Autogenerate the shebang lines for tools/opt-viewer
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. llvm-svn: 370095
This commit is contained in:
parent
33c62d6ddc
commit
fa08039609
@ -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…
x
Reference in New Issue
Block a user