mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 20:37:25 +03:00
Add search logic for AddressSanitizer library on Linuxes. (#2214)
* Make exe_path API a little more flexible. * Add search logic for AddressSanitizer library on Linuxes.
This commit is contained in:
parent
eb5b17371d
commit
fffeb85b5c
3 changed files with 48 additions and 5 deletions
|
@ -52,13 +52,13 @@ string exe_path::getLibDir() {
|
|||
return r.str();
|
||||
}
|
||||
|
||||
string exe_path::prependBinDir(const char *suffix) {
|
||||
string exe_path::prependBinDir(const llvm::Twine &suffix) {
|
||||
llvm::SmallString<128> r(getBinDir());
|
||||
path::append(r, suffix);
|
||||
return r.str();
|
||||
}
|
||||
|
||||
string exe_path::prependLibDir(const char *suffix) {
|
||||
string exe_path::prependLibDir(const llvm::Twine &suffix) {
|
||||
llvm::SmallString<128> r(getLibDir());
|
||||
path::append(r, suffix);
|
||||
return r.str();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue