We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b533f2 commit 33955fcCopy full SHA for 33955fc
llvm/tools/llvm-advisor/CMakeLists.txt
@@ -0,0 +1,24 @@
1
+set(LLVM_LINK_COMPONENTS
2
+ Support
3
+ )
4
+
5
+add_llvm_tool(llvm-advisor
6
+llvm-advisor.cpp
7
+)
8
9
+# Install the Python scripts alongside the binary
10
+install(DIRECTORY view/
11
+ DESTINATION ${CMAKE_INSTALL_BINDIR}/../share/llvm-advisor/view
12
+ FILES_MATCHING
13
+ PATTERN "*.py"
14
+ PATTERN "*.html"
15
+ PATTERN "*.css"
16
+ PATTERN "*.js"
17
+ PATTERN "*.yaml"
18
19
20
+# Set executable permissions for Python scripts
21
+install(CODE "
22
+ execute_process(COMMAND chmod +x
23
+ \${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/../share/llvm-advisor/view/cli/main.py)
24
+")
0 commit comments