-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conan migration #516
Draft
jusito
wants to merge
112
commits into
secure-software-engineering:development
Choose a base branch
from
fabianbs96:development-conan
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conan migration #516
jusito
wants to merge
112
commits into
secure-software-engineering:development
from
fabianbs96:development-conan
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 tests still failing
Merged
As update, conan 2.0 is out so I can continue on this. In essence the cmake integration changed in way I have to rethink a bit. Already looked into different solutions in january and it should be fine. |
This was referenced Mar 21, 2023
Closed
…ent-conan Rework Folder Structure
…ent-conan Cleanup Configuration
…ent-conan TaintConfig Template
…ent-conan Fix IIA reverse flow
…ent-conan Rework EdgeFunctions
…ent-conan Explicit Call Graph
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
enhancement
New feature or request
extensive
Bigger piece of work
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Phasar meets conan
Our main idea was to reuse our just-simple.cmake, which is like phasar_macros.cmake but more generic, and apply it with all its features to phasar. It took us around a year to mature it, always in mind with good cmake practice. This simplifies the cmake maintenance a lot.
include
,src
,resource
,test
phasar-llvm
and if test folder is present with testsphasar-llvm-test
ninja ccov-all
for debug preset and check*build*/ccov/all-merged/index.html
*build*/html/index.html
git mv
so file history is kept and I double checked for *.h, *.cpp, *.hpp files./utils/run_debugger.sh OpenSSL
uses ctest to resolves binary according to test filter, executes binary with lldb/gdb in correct wdir and generates gtest filter, prints and executes it E.g.lldb -- phasar-llvm-test --gtest_filter=*IDETSAnalysisOpenSSL*
project-folder[-test|-tool]
phasar-llvm
because there were a lot of circular dependencies (A uses include from B but B depends on A). This can be reverted but I didn't want to touch a lot of code in this pr just cmake and fix paths. Suggesting a follow up after this.(only for internal) Prepare conan to use prebuild llvm packages
pip3 install conan
conan config init
conan profile update settings.compiler=clang default
conan profile update settings.compiler.version=14 default
conan profile update settings.compiler.libcxx=libstdc++11 default
conan config set general.request_timeout=300
our gitlab can be very slow for huge packagesconan remote add just-simple-cmake https://gitlab.cc-asp.fraunhofer.de/api/v4/projects/34353/packages/conan
conan user -r "just-simple-cmake" -p "gitlab_api_read_token" "randomUser"
conan-relog
script in PATH, our gitlab needs sometimes a relog and this makes it way more handy.how to test normal build?
./utils/conan/install_recipes_to_local.sh
cmake --preset debug
cmake --build --preset debug
ctest --preset debug
ctest --preset debug -R IDETSAnalysisOpenSSL
ctest --preset debug -L phasar-llvm
Available preset for all stages are:
debug
debug-shared
release
release-shared
Phasar in tree build?
llvm/tools/phasar
conanfile.in_llvm_tree.txt
cmake/options.cmake
contains a branch for in tree, currently only disables unittests and changes the default conanfilewhat is missing?
#removed wali