File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1111// demonstration and testing purposes.
1212//
1313// ===----------------------------------------------------------------------===//
14- #include " version.h"
1514#include " clang/Basic/Stack.h"
1615#include " clang/Basic/TargetOptions.h"
1716#include " clang/CodeGen/ObjectFilePCHContainerOperations.h"
@@ -226,11 +225,14 @@ static int PrintSupportedExtensions(std::string TargetStr) {
226225
227226int cc1_main (ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
228227 clock_t StartTime = clock ();
228+ std::string ClangVersion = " v" + std::to_string (LLVM_VERSION_MAJOR) + " ." +
229+ std::to_string (LLVM_VERSION_MINOR) + " ." +
230+ std::to_string (LLVM_VERSION_PATCH);
229231 StringRef FileName = StringRef (Argv[Argv.size () - 1 ]);
230232 auto ExitClock = llvm::make_scope_exit ([&]() {
231233 clock_t EndTime = clock ();
232234 auto Delta = (double )(EndTime - StartTime) / CLOCKS_PER_SEC;
233- llvm::outs () << " llvm-msvc(" << CLANG_LLVM_MSVC_VERSION << " ) spent "
235+ llvm::outs () << " llvm-msvc(" << ClangVersion << " ) spent "
234236 << llvm::format (" %.3f" , Delta) << " s in " << FileName << " \n " ;
235237 });
236238
Original file line number Diff line number Diff line change 1010// for functionality in the Driver clang library.
1111//
1212// ===----------------------------------------------------------------------===//
13- #include " version.h"
1413#include " clang/Driver/Driver.h"
1514#include " clang/Basic/DiagnosticOptions.h"
1615#include " clang/Basic/HeaderInclude.h"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ if(NOT LLVM_NO_INSTALL_NAME_DIR_FOR_BUILD_TREE)
2222endif ()
2323
2424if (NOT DEFINED LLVM_VERSION_MAJOR)
25- set (LLVM_VERSION_MAJOR 18 )
25+ set (LLVM_VERSION_MAJOR 0 )
2626endif ()
2727if (NOT DEFINED LLVM_VERSION_MINOR)
2828 set (LLVM_VERSION_MINOR 0)
2929endif ()
3030if (NOT DEFINED LLVM_VERSION_PATCH)
31- set (LLVM_VERSION_PATCH 0 )
31+ set (LLVM_VERSION_PATCH 1 )
3232endif ()
3333if (NOT DEFINED LLVM_VERSION_SUFFIX)
34- set (LLVM_VERSION_SUFFIX git )
34+ set (LLVM_VERSION_SUFFIX newworld )
3535endif ()
3636
3737if (NOT PACKAGE_VERSION )
You can’t perform that action at this time.
0 commit comments