diff options
author | nechda <nechda@yandex-team.com> | 2023-11-29 10:28:31 +0300 |
---|---|---|
committer | nechda <nechda@yandex-team.com> | 2023-11-29 10:58:47 +0300 |
commit | e7053b70e0c103b1ba692ec756747dd20adadb07 (patch) | |
tree | 37d8e556929b67a24b19f1f6c52c9fac44e7bf70 | |
parent | c3a1acc5ca3c0dab90ed7a77eb2f9cda8dd1eccc (diff) | |
download | ydb-e7053b70e0c103b1ba692ec756747dd20adadb07.tar.gz |
Migrate CSA runner script to py3
-rw-r--r-- | build/scripts/clang_static_analyzer.py | 2 | ||||
-rw-r--r-- | build/ymake.core.conf | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build/scripts/clang_static_analyzer.py b/build/scripts/clang_static_analyzer.py index fa14293e37..65df8816af 100644 --- a/build/scripts/clang_static_analyzer.py +++ b/build/scripts/clang_static_analyzer.py @@ -92,7 +92,7 @@ if __name__ == '__main__': try: ret_code = main() except Exception as e: - print >> sys.stderr, "\n[Error]: " + str(e) + print("\n[Error]: " + str(e), file=sys.stderr) ret_code = 1 exit(ret_code) diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 8f55474a90..16bfecf756 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -130,7 +130,7 @@ macro _CLANG_SA_UNWRAP_PLUGINS(Plugins{input}[]) { CLANG_SA_PLUGINS= when ($CLANG_SA_ENABLE == "yes" && $_CLANG_SA_CONFIG) { - CLANG_STATIC_ANALYZER_OPTIONS=$YMAKE_PYTHON ${input:"build/scripts/clang_static_analyzer.py"} "--testing-src" ${input:SRC} "--clang-bin" $CXX_COMPILER "--source-root" $(SOURCE_ROOT) "--config-file" ${input:_CLANG_SA_CONFIG} "--plugins-begin" "dummy_param" $_CLANG_SA_UNWRAP_PLUGINS($CLANG_SA_PLUGINS) "--plugins-end" $C_FLAGS_PLATFORM $GCC_COMPILE_FLAGS $CXXFLAGS $SRCFLAGS + CLANG_STATIC_ANALYZER_OPTIONS=$YMAKE_PYTHON3 ${input:"build/scripts/clang_static_analyzer.py"} "--testing-src" ${input:SRC} "--clang-bin" $CXX_COMPILER "--source-root" $(SOURCE_ROOT) "--config-file" ${input:_CLANG_SA_CONFIG} "--plugins-begin" "dummy_param" $_CLANG_SA_UNWRAP_PLUGINS($CLANG_SA_PLUGINS) "--plugins-end" $C_FLAGS_PLATFORM $GCC_COMPILE_FLAGS $CXXFLAGS $SRCFLAGS } otherwise { CLANG_STATIC_ANALYZER_OPTIONS= |