Skip to content

Commit 33955fc

Browse files
committed
[llvm-advisor] create compiler wrapper to obtain remarks and profiling
- include build configuration and source file
1 parent 0b533f2 commit 33955fc

File tree

2 files changed

+514
-0
lines changed

2 files changed

+514
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)