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
c2a4529d
Commit
c2a4529d
authored
9 years ago
by
Adrian Sampson
Browse files
Options
Downloads
Patches
Plain Diff
Slightly more proper CMake nonsense
parent
3aaece3b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
skeleton/CMakeLists.txt
+13
-2
13 additions, 2 deletions
skeleton/CMakeLists.txt
with
13 additions
and
2 deletions
skeleton/CMakeLists.txt
+
13
−
2
View file @
c2a4529d
...
...
@@ -3,7 +3,18 @@ add_library(SkeletonPass MODULE
Skeleton.cpp
)
# Use C++11 to compile our pass (i.e., supply -std=c++11).
target_compile_features
(
SkeletonPass PRIVATE cxx_range_for cxx_auto_type
)
# LLVM is (typically) built with no C++ RTTI. We need to match that.
set_target_properties
(
SkeletonPass PROPERTIES
COMPILE_FLAGS
"-fno-rtti"
)
# Get proper shared-library behavior (where symbols are not necessarily
# resolved when the shared library is linked) on OS X.
if
(
APPLE
)
set_target_properties
(
SkeletonPass PROPERTIES
COMPILE_FLAGS
"-std=c++11 -fno-rtti"
LINK_FLAGS
"-undefined dynamic_lookup"
)
endif
(
APPLE
)
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