-
Notifications
You must be signed in to change notification settings - Fork 149
Conan migration #516
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
Conversation
60 tests still failing
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. |
…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
@fabianbs96 we can close this :-) because already done in #744 |
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