diff options
author | heretic <heretic@yandex-team.ru> | 2022-02-10 16:45:43 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:43 +0300 |
commit | 397cbe258b9e064f49c4ca575279f02f39fef76e (patch) | |
tree | a0b0eb3cca6a14e4e8ea715393637672fa651284 /library/cpp/build_info | |
parent | 43f5a35593ebc9f6bcea619bb170394ea7ae468e (diff) | |
download | ydb-397cbe258b9e064f49c4ca575279f02f39fef76e.tar.gz |
Restoring authorship annotation for <heretic@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/build_info')
-rw-r--r-- | library/cpp/build_info/build_info.h | 2 | ||||
-rw-r--r-- | library/cpp/build_info/build_info_static.cpp | 52 | ||||
-rw-r--r-- | library/cpp/build_info/build_info_static.h | 20 | ||||
-rw-r--r-- | library/cpp/build_info/ya.make | 6 |
4 files changed, 40 insertions, 40 deletions
diff --git a/library/cpp/build_info/build_info.h b/library/cpp/build_info/build_info.h index a494870ba34..3bc756af58a 100644 --- a/library/cpp/build_info/build_info.h +++ b/library/cpp/build_info/build_info.h @@ -1,7 +1,7 @@ #pragma once #include "sandbox.h" -#include "build_info_static.h" +#include "build_info_static.h" #if defined(__cplusplus) extern "C" { diff --git a/library/cpp/build_info/build_info_static.cpp b/library/cpp/build_info/build_info_static.cpp index 238fb1ecb0f..4f99f7ed3c3 100644 --- a/library/cpp/build_info/build_info_static.cpp +++ b/library/cpp/build_info/build_info_static.cpp @@ -1,27 +1,27 @@ -#include "build_info_static.h" - +#include "build_info_static.h" + #include <library/cpp/build_info/buildinfo_data.h> - -extern "C" const char* GetCompilerVersion() { -#if defined(BUILD_COMPILER_VERSION) - return BUILD_COMPILER_VERSION; -#else - return ""; -#endif -} - -extern "C" const char* GetCompilerFlags() { -#if defined(BUILD_COMPILER_FLAGS) - return BUILD_COMPILER_FLAGS; -#else - return ""; -#endif -} - -extern "C" const char* GetBuildInfo() { -#if defined(BUILD_INFO) - return BUILD_INFO; -#else - return ""; -#endif -} + +extern "C" const char* GetCompilerVersion() { +#if defined(BUILD_COMPILER_VERSION) + return BUILD_COMPILER_VERSION; +#else + return ""; +#endif +} + +extern "C" const char* GetCompilerFlags() { +#if defined(BUILD_COMPILER_FLAGS) + return BUILD_COMPILER_FLAGS; +#else + return ""; +#endif +} + +extern "C" const char* GetBuildInfo() { +#if defined(BUILD_INFO) + return BUILD_INFO; +#else + return ""; +#endif +} diff --git a/library/cpp/build_info/build_info_static.h b/library/cpp/build_info/build_info_static.h index 9bf9939dd95..855b3fd12a8 100644 --- a/library/cpp/build_info/build_info_static.h +++ b/library/cpp/build_info/build_info_static.h @@ -1,13 +1,13 @@ -#pragma once - -#if defined(__cplusplus) -extern "C" { -#endif - +#pragma once + +#if defined(__cplusplus) +extern "C" { +#endif + const char* GetCompilerVersion(); const char* GetCompilerFlags(); // "-std=c++14 -DNDEBUG -O2 -m64 ..." const char* GetBuildInfo(); // Compiler version and flags - -#if defined(__cplusplus) -} -#endif + +#if defined(__cplusplus) +} +#endif diff --git a/library/cpp/build_info/ya.make b/library/cpp/build_info/ya.make index 99886a88932..de32c7414f8 100644 --- a/library/cpp/build_info/ya.make +++ b/library/cpp/build_info/ya.make @@ -3,14 +3,14 @@ LIBRARY() OWNER( mvel snowball - heretic + heretic ) DEFAULT(SANDBOX_TASK_ID 0) DEFAULT(KOSHER_SVN_VERSION "") CREATE_BUILDINFO_FOR(buildinfo_data.h) - + PEERDIR( library/cpp/string_utils/base64 ) @@ -18,7 +18,7 @@ PEERDIR( SRCS( sandbox.cpp.in build_info.cpp.in - build_info_static.cpp + build_info_static.cpp ) END() |