-
Notifications
You must be signed in to change notification settings - Fork 14.7k
[opt-viewer] Allow users to set LLVM_HAVE_OPT_VIEWER_MODULES manually… #151845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… from the CMake Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES so that if the user specifies the variable on the commandline it takes precedence. If not, fall back to the old logic Upstream-Status: Submitted [llvm#151845] Signed-off-by: Khem Raj <raj.khem@gmail.com>
Note that the opt-viewer script is always installed anyway, even if the dependencies are not present. I'd say the same variable should be used to seed whether opt-viewer is installed or not. |
…he CMake Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES so that if the user specifies the variable on the commandline it takes precedence. If not, fall back to the old logic Upstream-Status: Submitted [llvm#151845] Signed-off-by: Khem Raj <raj.khem@gmail.com>
…he CMake Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES so that if the user specifies the variable on the commandline it takes precedence. If not, fall back to the old logic Do not install opt-viewer of the modules are not found. Since the python scripts have dependencies on these modules, it makes not much point to have them installed.
I know that LLVM currently has all the detection logic embedded in AddLLVM.cmake, is that by design or just how it's happened? It feels like it could be moved into llvm/tools/opt-viewer/CMakeLists.txt which would then also automatically not run if LLVM_TOOL_OPT_VIEWER_BUILD was OFF. |
… from the CMake Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES so that if the user specifies the variable on the commandline it takes precedence. If not, fall back to the old logic Upstream-Status: Submitted [llvm#151845] Signed-off-by: Khem Raj <raj.khem@gmail.com>
…he CMake Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES so that if the user specifies the variable on the commandline it takes precedence. If not, fall back to the old logic Upstream-Status: Submitted [llvm#151845] Signed-off-by: Khem Raj <raj.khem@gmail.com>
…he CMake Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES so that if the user specifies the variable on the commandline it takes precedence. If not, fall back to the old logic Upstream-Status: Submitted [llvm#151845] Signed-off-by: Khem Raj <raj.khem@gmail.com>
…he CMake Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES so that if the user specifies the variable on the commandline it takes precedence. If not, fall back to the old logic Upstream-Status: Submitted [llvm#151845] Signed-off-by: Khem Raj <raj.khem@gmail.com>
… from the CMake
Check right before setting LLVM_HAVE_OPT_VIEWER_MODULES so that if the user specifies the variable on the commandline it takes precedence. If not, fall back to the old logic