Conan migration#516
Closed
jusito wants to merge 112 commits intosecure-software-engineering:developmentfrom
Closed
Conan migration#516jusito wants to merge 112 commits intosecure-software-engineering:developmentfrom
jusito wants to merge 112 commits intosecure-software-engineering:developmentfrom
Conversation
60 tests still failing
Merged
Member
Author
|
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
Merged
Collaborator
|
@fabianbs96 we can close this :-) because already done in #744 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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,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