build_info_static.cpp 491 B

123456789101112131415161718192021222324252627
  1. #include "build_info_static.h"
  2. #include <library/cpp/build_info/buildinfo_data.h>
  3. extern "C" const char* GetCompilerVersion() {
  4. #if defined(BUILD_COMPILER_VERSION)
  5. return BUILD_COMPILER_VERSION;
  6. #else
  7. return "";
  8. #endif
  9. }
  10. extern "C" const char* GetCompilerFlags() {
  11. #if defined(BUILD_COMPILER_FLAGS)
  12. return BUILD_COMPILER_FLAGS;
  13. #else
  14. return "";
  15. #endif
  16. }
  17. extern "C" const char* GetBuildInfo() {
  18. #if defined(BUILD_INFO)
  19. return BUILD_INFO;
  20. #else
  21. return "";
  22. #endif
  23. }