Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
llvm-pass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Lindgren
llvm-pass
Commits
6964c8c1
Commit
6964c8c1
authored
9 years ago
by
Adrian Sampson
Browse files
Options
Downloads
Patches
Plain Diff
Use add_llvm_loadable_module
Can't get ordinary CMake add_library to work for whatever reason.
parent
c754bf98
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+3
-0
3 additions, 0 deletions
CMakeLists.txt
skeleton/CMakeLists.txt
+4
-1
4 additions, 1 deletion
skeleton/CMakeLists.txt
with
7 additions
and
1 deletion
CMakeLists.txt
+
3
−
0
View file @
6964c8c1
find_package
(
LLVM REQUIRED CONFIG
)
find_package
(
LLVM REQUIRED CONFIG
)
list
(
APPEND CMAKE_MODULE_PATH
"
${
LLVM_CMAKE_DIR
}
"
)
include
(
AddLLVM
)
add_definitions
(
${
LLVM_DEFINITIONS
}
)
add_definitions
(
${
LLVM_DEFINITIONS
}
)
include_directories
(
${
LLVM_INCLUDE_DIRS
}
)
include_directories
(
${
LLVM_INCLUDE_DIRS
}
)
...
...
This diff is collapsed.
Click to expand it.
skeleton/CMakeLists.txt
+
4
−
1
View file @
6964c8c1
add_library
(
SkeletonPass MODULE Skeleton.cpp
)
add_llvm_loadable_module
(
SkeletonPass
# List your source files here.
Skeleton.cpp
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment