Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTUApex
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Heldmann, Tim
CTUApex
Commits
1cd1e7f7
Commit
1cd1e7f7
authored
5 months ago
by
Regfare
Browse files
Options
Downloads
Patches
Plain Diff
Add forgotten porting fix, update CMake to give warning on incompatible Clang Version
parent
1be60f30
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+10
-3
10 additions, 3 deletions
CMakeLists.txt
src/main.cpp
+1
-1
1 addition, 1 deletion
src/main.cpp
with
11 additions
and
4 deletions
CMakeLists.txt
+
10
−
3
View file @
1cd1e7f7
cmake_minimum_required
(
VERSION 3.
0
)
cmake_minimum_required
(
VERSION 3.
16
)
project
(
CTUApex
)
set
(
CMAKE_CXX_STANDARD 17
)
find_package
(
metacg REQUIRED
)
find_package
(
Clang REQUIRED
)
find_package
(
Clang REQUIRED CONFIG
)
message
(
STATUS
"Found LLVM/Clang version "
${
LLVM_VERSION
}
)
if
(
"
${
LLVM_VERSION_MAJOR
}
"
VERSION_LESS 15
)
message
(
FATAL_ERROR
"Found LLVM
${
LLVM_VERSION_MAJOR
}
, but need LLVM 15 or above"
)
endif
()
# set log level using -DLOG_LEVEL="INFO"|"DEBUG", defaults to "INFO"
set
(
LOG_LEVEL
"TRACE"
CACHE STRING
""
)
...
...
@@ -29,7 +36,7 @@ add_executable(CTUApex
target_include_directories
(
CTUApex PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/>
)
target_link_libraries
(
CTUApex metacg
)
target_link_libraries
(
CTUApex
metacg::
metacg
)
#target_link_libraries(CTUApex minicpr)
target_link_libraries
(
CTUApex clangTooling
)
target_compile_options
(
CTUApex PUBLIC -fno-rtti
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main.cpp
+
1
−
1
View file @
1cd1e7f7
...
...
@@ -147,7 +147,7 @@ int main(int argc, const char **argv) {
auto
&
mcgManager
=
metacg
::
graph
::
MCGManager
::
get
();
mcgManager
.
addToManagedGraphs
(
"emptyGraph"
,
std
::
make_unique
<
metacg
::
Callgraph
>
());
mcgReader
->
read
(
mcgManager
);
mcgReader
->
read
();
auto
&
cg
=
*
mcgManager
.
getCallgraph
();
//Add extraction point gotten via the CLI
for
(
const
auto
&
extractionFunc
:
extractionPoints
){
...
...
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