Author: serge-sans-paille Date: 2021-09-27T08:35:19+02:00 New Revision: e45f67f31e22ce9808f4e64ab3f54fadad640d97
URL: https://github.com/llvm/llvm-project/commit/e45f67f31e22ce9808f4e64ab3f54fadad640d97 DIFF: https://github.com/llvm/llvm-project/commit/e45f67f31e22ce9808f4e64ab3f54fadad640d97.diff LOG: Make analyze-cc path discovery sensible to symlinks Fix https://bugs.llvm.org/show_bug.cgi?id=51897 Differential Revision: https://reviews.llvm.org/D110521 Added: Modified: clang/tools/scan-build-py/lib/libscanbuild/analyze.py Removed: ################################################################################ diff --git a/clang/tools/scan-build-py/lib/libscanbuild/analyze.py b/clang/tools/scan-build-py/lib/libscanbuild/analyze.py index d83ff2aefab98..08802de81cc57 100644 --- a/clang/tools/scan-build-py/lib/libscanbuild/analyze.py +++ b/clang/tools/scan-build-py/lib/libscanbuild/analyze.py @@ -39,7 +39,7 @@ __all__ = ['scan_build', 'analyze_build', 'analyze_compiler_wrapper'] -scanbuild_dir = os.path.dirname(__import__('sys').argv[0]) +scanbuild_dir = os.path.dirname(os.path.realpath(__import__('sys').argv[0])) COMPILER_WRAPPER_CC = os.path.join(scanbuild_dir, '..', 'libexec', 'analyze-cc') COMPILER_WRAPPER_CXX = os.path.join(scanbuild_dir, '..', 'libexec', 'analyze-c++') _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits