Skip to content
Snippets Groups Projects
Commit f94becf3 authored by Axel Naumann's avatar Axel Naumann
Browse files

First step away from SVN versioning.

parent 3f679e84
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,7 @@ namespace cling {
bool withAccessControl);
///\brief Set up include paths for runtime headers.
void AddRuntimeIncludePaths();
void AddRuntimeIncludePaths(const char* argv0);
///\brief Include C++ runtime headers and definitions.
void IncludeCxxRuntime();
///\brief Include C runtime headers and definitions.
......
......@@ -186,7 +186,7 @@ namespace cling {
handleFrontendOptions();
AddRuntimeIncludePaths();
AddRuntimeIncludePaths(argv[0]);
// Tell the diagnostic client that we are entering file parsing mode.
DiagnosticConsumer& DClient = getCI()->getDiagnosticClient();
......@@ -212,7 +212,11 @@ namespace cling {
}
const char* Interpreter::getVersion() const {
return "$Id$";
#ifdef CLING_VERSION
return CLING_VERSION
#else
return "<unknown>";
#endif
}
void Interpreter::handleFrontendOptions() {
......@@ -224,7 +228,7 @@ namespace cling {
}
}
void Interpreter::AddRuntimeIncludePaths() {
void Interpreter::AddRuntimeIncludePaths(const char* argv0) {
// Add configuration paths to interpreter's include files.
#ifdef CLING_INCLUDE_PATHS
llvm::StringRef InclPaths(CLING_INCLUDE_PATHS);
......@@ -238,7 +242,7 @@ namespace cling {
// Add remaining part
AddIncludePath(InclPaths);
#endif
llvm::SmallString<512> P(GetExecutablePath(argv[0]));
llvm::SmallString<512> P(GetExecutablePath(argv0));
if (!P.empty()) {
// Remove /cling from foo/bin/clang
llvm::StringRef ExeIncl = llvm::sys::path::parent_path(P);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment