diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/klee/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 82ced957..78e0d394 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -1214,7 +1214,14 @@ int main(int argc, char **argv, char **envp) { return r; } +#if defined(KLEE_LIB_DIR) && defined(USE_KLEE_LIB_DIR) + /* KLEE_LIB_DIR is the lib dir of installed files as opposed to + * where libs in the klee source tree are generated. + */ + llvm::sys::Path LibraryDir(KLEE_LIB_DIR); +#else llvm::sys::Path LibraryDir(KLEE_DIR "/" RUNTIME_CONFIGURATION "/lib"); +#endif Interpreter::ModuleOptions Opts(LibraryDir.c_str(), /*Optimize=*/OptimizeModule, /*CheckDivZero=*/CheckDivZero); |