runtimes_build_info.tpl.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. //
  5. // Header file template expanded with strings describing build info for Carbon's
  6. // runtimes.
  7. //
  8. // See toolchain/base/runtimes_build_info.bzl for more details.
  9. #ifndef CARBON_TOOLCHAIN_BASE_RUNTIMES_BUILD_INFO_TPL_H_
  10. #define CARBON_TOOLCHAIN_BASE_RUNTIMES_BUILD_INFO_TPL_H_
  11. #include "llvm/ADT/StringRef.h"
  12. namespace Carbon::RuntimesBuildInfo {
  13. inline constexpr llvm::StringLiteral CrtBegin = CRTBEGIN_SRC;
  14. inline constexpr llvm::StringLiteral CrtEnd = CRTEND_SRC;
  15. inline constexpr llvm::StringLiteral CrtCopts[] = {CRT_COPTS};
  16. // Prevent wrapping these lines -- the expansion of the variables will add line
  17. // breaks.
  18. //
  19. // clang-format off
  20. inline constexpr llvm::StringLiteral BuiltinsAarch64Srcs[] = {BUILTINS_AARCH64_SRCS};
  21. // NOLINTNEXTLINE(readability-identifier-naming)
  22. inline constexpr llvm::StringLiteral BuiltinsX86_64Srcs[] = {BUILTINS_X86_64_SRCS};
  23. inline constexpr llvm::StringLiteral BuiltinsI386Srcs[] = {BUILTINS_I386_SRCS};
  24. // clang-format on
  25. inline constexpr llvm::StringLiteral BuiltinsCopts[] = {BUILTINS_COPTS};
  26. inline constexpr llvm::StringLiteral LibcxxLinuxSrcs[] = {LIBCXX_LINUX_SRCS};
  27. inline constexpr llvm::StringLiteral LibcxxMacosSrcs[] = {LIBCXX_MACOS_SRCS};
  28. inline constexpr llvm::StringLiteral LibcxxWin32Srcs[] = {LIBCXX_WIN32_SRCS};
  29. inline constexpr llvm::StringLiteral LibcxxabiSrcs[] = {LIBCXXABI_SRCS};
  30. inline constexpr llvm::StringLiteral LibcxxCopts[] = {LIBCXX_AND_ABI_COPTS};
  31. inline constexpr llvm::StringLiteral LibunwindSrcs[] = {LIBUNWIND_SRCS};
  32. inline constexpr llvm::StringLiteral LibunwindCopts[] = {LIBUNWIND_COPTS};
  33. } // namespace Carbon::RuntimesBuildInfo
  34. #endif // CARBON_TOOLCHAIN_BASE_RUNTIMES_BUILD_INFO_TPL_H_