version_stamp.tmpl.cpp 752 B

12345678910111213141516171819202122232425
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #include "common/version.h"
  5. namespace Carbon {
  6. #pragma clang attribute push
  7. // If requested, make the contents of this file weak.
  8. #if $MAKE_WEAK
  9. #pragma clang attribute(__attribute__((weak)), \
  10. apply_to = any(function, variable))
  11. #endif
  12. constexpr llvm::StringLiteral Version::String =
  13. "$VERSION+$GIT_COMMIT_SHA$GIT_DIRTY_SUFFIX";
  14. constexpr llvm::StringLiteral Version::ToolchainInfo = R"""(
  15. Carbon Language toolchain version: $VERSION+$GIT_COMMIT_SHA$GIT_DIRTY_SUFFIX
  16. )""";
  17. #pragma clang attribute pop
  18. } // namespace Carbon