Comments (2)
The task 1 (automatically setup repo toolchain) has been finished and the scripts have been committed in git 7f20b75.
Build and use the repo toolchain with CMake:
Step 1: build the compiler following the steps mentioned in https://github.com/SNSystems/llvm-prepo/blob/master/README.md. The make_build.py python script could be used to generate a build, for example:
$ cd ~/llvm-prepo/
$ tools/pstore/utils/make_build.py
Step2: copy the repo.json (in the ~/llvm-prepo/utils/repo folder) to your pstore local repository (in the ~/llvm-prepo/tools/pstore folder), and modify the repo2obj to point to the repo2obj tool in your llvm-pstore build directory. After modifying the repo.json, the contents are:
$ cd ~/llvm-prepo/tools/pstore
$ vim repo.cmake
{
"ar": "/usr/bin/ar",
"link": "/usr/bin/clang++",
"repo2obj": "/home/username/llvm-prepo/build_linux/bin/repo2obj"
}
Step 3: generate a build using the repo.camke toolchain file. The user must specify CMAKE_C_COMPILER, CMAKE_CXX_COMPILER and utils_dir. For example, using the following command to generate a pstore build using the repo toolchain.
$ cd ~/llvm-prepo/tools/pstore
$ utils/make_build.py -DCMAKE_TOOLCHAIN_FILE=/home/username/llvm-prepo/utils/repo/repo.cmake -DCMAKE_CXX_COMPILER=/home/username/llvm-prepo/build_linux/bin/clang++ -DCMAKE_C_COMPILER=/home/username/llvm-prepo/build_linux/bin/clang -Dutils_dir=/home/username/llvm-prepo/utils/repo -o Build
from llvm-prepo.
Finished and committed in git commits: 7f20b75 and 91591ab.
from llvm-prepo.
Related Issues (20)
- Switch ticket files from UUID to digest of contents
- Assertion failed: Val && "isa<> used on a null pointer" HOT 2
- Ticket file digests are different between two time builds HOT 2
- Ticket file digests (the pstore_mcrepo/fragment.cpp) are different between two time builds HOT 2
- Optimizing the llvm-prepo compiler to reduce user project build time HOT 5
- llvm-prepo: Incorrect hash calculation for the ‘CallInst’ instruction. HOT 2
- Incorrect hash calculation for llvm.global_ctors HOT 2
- Undefined reference to 'str' HOT 1
- UNREACHABLE executed at /mnt/e/work/prepo/llvm/lib/IR/RepoHashCalculator.cpp:131! HOT 2
- Update this project to the upstream LLVM 8.0 HOT 1
- Incorrect fragment generation for same functions in the translation unit. HOT 2
- Accumulate the debug line information to the repo hash calculation.
- Use 'available_externally' linkage in the RepoPruning pass
- Fatal error: invalid linkage for intrinsic global variable
- Store the target triple in the compilation record HOT 2
- llvm-prepo test: the pstore unit and system tests HOT 1
- Incorrect hash calculation for a global object (GO) that calls another GO with an available_externally linkage type. HOT 1
- The MC object writer and repo2obj treat a bss section as a special section HOT 1
- Clean up the debug_line branch and merge it back to the master branch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-prepo.