mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 19:33:13 +01: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.
18 lines
536 B
C++
18 lines
536 B
C++
//===-- driver/ldc-version.c - ----------------------------------*- C++ -*-===//
|
||
//
|
||
// LDC – the LLVM D compiler
|
||
//
|
||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||
// file for details.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
|
||
#include "driver/ldc-version.h"
|
||
|
||
namespace ldc {
|
||
|
||
const char * const ldc_version = "@LDC_VERSION@";
|
||
const char * const dmd_version = "@DMD_VERSION@";
|
||
const char * const llvm_version = "@LLVM_VERSION_STRING@";
|
||
|
||
} |