ConceptClang Team

ConceptClang Installation Instructions

The current version of concept clang is based on revision 138707 of the clang repository, and compiles with revision 138708 of the llvm repository.

To run the prototype:

Build

  • mkdir llvm.test
  • cd llvm.test
  • svn co -r 138708 http://llvm.org/svn/llvm-project/llvm/trunk llvm
  • cd llvm/
  • cd tools/
  • wget http://www.generic-programming.org/software/ConceptClang/clang-concepts.tar.gz
  • # Or download it directly from:
    http://www.generic-programming.org/software/ConceptClang/clang-concepts.tar.gz
  • tar -xvf clang-concepts.tar.gz; mv clang-concepts clang
  • cd ..
  • ./configure
    # The build might fail on 64-bit architectures. In such cases, configure with the flag --disable-bindings.
  • make

Test

At least once, do the following:

  • cd LLVM_DIR/
  • ./configure
  • cd tools/clang/test/
  • make
  • # There are some regression test failures (roughly 5), due to backward compatibility.
  • # We will fix them at time allows…

Then, do the following:

  • Run the Concepts-related test suite(s) in CLANG_DIR/tests/Concepts with the following command:
    python LLVM_DIR/utils/lit/lit.py -sv --no-progress-bar LLVM_DIR/tools/clang/test/Concepts/

Alternatively, you can also do:

  • cd LLVM_DIR/tools/clang/test
  • ./TestRunner.sh Concepts/

All tests should pass.