/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
common/version_stamp.tmpl.cpp
25 строк
752 B
Chandler Carruth
Introduce version and build info stamping. (#4054)
18 июн 2024, 03:33
Не верифицирован
18 июн 2024, 03:33
b51dc7f
Код
Авторство
О чём код?
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "common/version.h" namespace Carbon { #pragma clang attribute push // If requested, make the contents of this file weak. #if $MAKE_WEAK #pragma clang attribute(__attribute__((weak)), \ apply_to = any(function, variable)) #endif constexpr llvm::StringLiteral Version::String = "$VERSION+$GIT_COMMIT_SHA$GIT_DIRTY_SUFFIX"; constexpr llvm::StringLiteral Version::ToolchainInfo = R"""( Carbon Language toolchain version: $VERSION+$GIT_COMMIT_SHA$GIT_DIRTY_SUFFIX )"""; #pragma clang attribute pop } // namespace Carbon