From 94224387828e9d2d271c01c52cde3530d5c59139 Mon Sep 17 00:00:00 2001 From: Edward Chen <18449977+edgchen1@users.noreply.github.com> Date: Wed, 12 Oct 2022 10:16:26 -0700 Subject: [PATCH] Objective-C static analysis - use different llvm path to try to find clang-tidy. (#13280) Use different llvm path to try to find clang-tidy. Sometimes the build fails because it can't find clang-tidy. Hopefully this path works better. --- .../azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci_build/github/azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml index 988a73d4c4..297b553a9d 100644 --- a/tools/ci_build/github/azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml @@ -33,7 +33,7 @@ jobs: displayName: Generate compile_commands.json and ONNX protobuf files - script: | - "$(brew --prefix llvm)/bin/clang-tidy" \ + "$(brew --prefix llvm@14)/bin/clang-tidy" \ -p="$(Build.BinariesDirectory)/Debug" \ --checks="-*,clang-analyzer-*" \ --header-filter="objectivec/include|objectivec/src|onnxruntime/core" \