-
Notifications
You must be signed in to change notification settings - Fork 156
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,testphasar-llvmand if test folder is present with testsphasar-llvm-testninja ccov-allfor debug preset and check*build*/ccov/all-merged/index.html*build*/html/index.htmlgit mvso file history is kept and I double checked for *.h, *.cpp, *.hpp files./utils/run_debugger.sh OpenSSLuses 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-llvmbecause 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 conanconan config initconan profile update settings.compiler=clang defaultconan profile update settings.compiler.version=14 defaultconan profile update settings.compiler.libcxx=libstdc++11 defaultconan config set general.request_timeout=300our gitlab can be very slow for huge packagesconan remote add just-simple-cmake https://gitlab.cc-asp.fraunhofer.de/api/v4/projects/34353/packages/conanconan user -r "just-simple-cmake" -p "gitlab_api_read_token" "randomUser"conan-relogscript 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.shcmake --preset debugcmake --build --preset debugctest --preset debugctest --preset debug -R IDETSAnalysisOpenSSLctest --preset debug -L phasar-llvmAvailable preset for all stages are:
debugdebug-sharedreleaserelease-sharedPhasar in tree build?
llvm/tools/phasarconanfile.in_llvm_tree.txtcmake/options.cmakecontains a branch for in tree, currently only disables unittests and changes the default conanfilewhat is missing?
#removed wali