Coder Social home page Coder Social logo

Comments (2)

MaggieYingYi avatar MaggieYingYi commented on August 13, 2024

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.

MaggieYingYi avatar MaggieYingYi commented on August 13, 2024

Finished and committed in git commits: 7f20b75 and 91591ab.

from llvm-prepo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.