llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.15k stars 12.03k forks source link

[cmake / compiler-rt] Please make tests runnable against installed LLVM #29479

Open llvmbot opened 8 years ago

llvmbot commented 8 years ago
Bugzilla Link 29109
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

Extension of bug #​18331. I'd like to request making it possible to run compiler-rt's tests without having to have LLVM sources around, just the 'regular' install with test utilities and llvm-lit (i.e. the same things clang requires).

llvmbot commented 8 years ago

Well, for a start the two following things would be of big help:

  1. Ability to override LLVM source directory -- currently it's taken from llvm-config. Since we're doing isolated package builds, the path originally used to build llvm is no longer valid when building compiler-rt. It's no big deal unpacking llvm sources when running tests locally but I'll need a path override to make compiler-rt find them.

  2. Ability to override clang's compiler-rt lookup path -- i.e. making it possible to use system clang against just-built compiler-rt without having to install it system-wide first.