diff options
author | Adam Nemet <anemet@apple.com> | 2017-11-29 00:10:48 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2017-11-29 00:10:48 +0000 |
commit | 4418c09eb31b21301de64ab1982f2db2b464bac5 (patch) | |
tree | f07dcb651bdcc83a03a65ffde1288500360f5569 /cmake | |
parent | 115c91a3b219971c6ec3d4dd1a1286143d4ae356 (diff) |
Revert "Add opt-viewer testing"
This reverts commit r319188.
Breaks when c++filt is not available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index caa538082fc..23494fb96c6 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -628,34 +628,3 @@ else() endif() string(REPLACE " " ";" LLVM_BINDINGS_LIST "${LLVM_BINDINGS}") - -function(find_python_module module) - string(TOUPPER ${module} module_upper) - set(FOUND_VAR PY_${module_upper}_FOUND) - - execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c" "import ${module}" - RESULT_VARIABLE status - ERROR_QUIET) - - if(status) - set(${FOUND_VAR} 0 PARENT_SCOPE) - message(STATUS "Could NOT find Python module ${module}") - else() - set(${FOUND_VAR} 1 PARENT_SCOPE) - message(STATUS "Found Python module ${module}") - endif() -endfunction() - -set (PYTHON_MODULES - pygments - yaml - ) -foreach(module ${PYTHON_MODULES}) - find_python_module(${module}) -endforeach() - -if(PY_PYGMENTS_FOUND AND PY_YAML_FOUND) - set (LLVM_HAVE_OPT_VIEWER_MODULES 1) -else() - set (LLVM_HAVE_OPT_VIEWER_MODULES 0) -endif() |