mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-12 22:14:54 +03:00

CMakeLists.txt contains now the version numbers for DMD and (next) LDC release. If a .git folder is found then the LDC version is replaced by the first 6 chars of the Git revision. Possible improvements: - If the build is not done at the master branch then it could be useful to check for a tag and use the tag instead of the revision. (for release builds) - Maybe it is useful to include the branch name. This fixes issue #366.
21 lines
538 B
C++
21 lines
538 B
C++
//===-- driver/ldc-version.h - ----------------------------------*- C++ -*-===//
|
||
//
|
||
// LDC – the LLVM D compiler
|
||
//
|
||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||
// file for details.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
|
||
#ifndef LDC_DRIVER_LDC_VERSION_H
|
||
#define LDC_DRIVER_LDC_VERSION_H
|
||
|
||
namespace ldc {
|
||
|
||
extern const char * const ldc_version;
|
||
extern const char * const dmd_version;
|
||
extern const char * const llvm_version;
|
||
|
||
}
|
||
|
||
#endif
|