mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04: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")
|
message(FATAL_ERROR "Python 2.7 or newer is required")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
get_filename_component(PYTHON_BASENAME ${PYTHON_EXECUTABLE} NAME)
|
|
||||||
|
|
||||||
######
|
######
|
||||||
# LLVMBuild Integration
|
# LLVMBuild Integration
|
||||||
#
|
#
|
||||||
|
@ -1,28 +1,13 @@
|
|||||||
set (files
|
set (files
|
||||||
"optpmap.py"
|
|
||||||
"style.css")
|
|
||||||
|
|
||||||
set (generated_files
|
|
||||||
"opt-diff.py"
|
"opt-diff.py"
|
||||||
"opt-stats.py"
|
"opt-stats.py"
|
||||||
"opt-viewer.py"
|
"opt-viewer.py"
|
||||||
"optrecord.py")
|
"optpmap.py"
|
||||||
|
"optrecord.py"
|
||||||
foreach (file ${generated_files})
|
"style.css")
|
||||||
configure_file(
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${file}.in
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/${file})
|
|
||||||
endforeach (file)
|
|
||||||
|
|
||||||
foreach (file ${files})
|
foreach (file ${files})
|
||||||
install(PROGRAMS ${file}
|
install(PROGRAMS ${file}
|
||||||
DESTINATION share/opt-viewer
|
DESTINATION share/opt-viewer
|
||||||
COMPONENT opt-viewer)
|
COMPONENT opt-viewer)
|
||||||
endforeach (file)
|
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
|
from __future__ import print_function
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env @PYTHON_BASENAME@
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env @PYTHON_BASENAME@
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env @PYTHON_BASENAME@
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
Loading…
Reference in New Issue
Block a user