[all-commits] [llvm/llvm-project] 31af9c: [clang][ssaf] Fix shared library build by adding m...

Balázs Benics via All-commits all-commits at lists.llvm.org
Fri Mar 13 11:03:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 31af9ce0fa5fc94a80f8313fc3953ea8b9627c13
      https://github.com/llvm/llvm-project/commit/31af9ce0fa5fc94a80f8313fc3953ea8b9627c13
  Author: Balázs Benics <benicsbalazs at gmail.com>
  Date:   2026-03-13 (Fri, 13 Mar 2026)

  Changed paths:
    M clang/unittests/ScalableStaticAnalysisFramework/CMakeLists.txt
    M llvm/utils/gn/secondary/clang/unittests/ScalableStaticAnalysisFramework/BUILD.gn

  Log Message:
  -----------
  [clang][ssaf] Fix shared library build by adding missing clangBasic dependency (#186475)

The ClangScalableAnalysisTests target was missing a link dependency on
clangBasic, causing linker failures on shared library builds where
transitive dependencies are not automatically resolved.

Fixes
https://github.com/llvm/llvm-project/pull/186442#issuecomment-4056922413
https://lab.llvm.org/buildbot/#/builders/10/builds/24522

```
AILED: tools/clang/unittests/ScalableStaticAnalysisFramework/ClangScalableAnalysisTests
/usr/bin/ld: tools/clang/unittests/ScalableStaticAnalysisFramework/CMakeFiles/ClangScalableAnalysisTests.dir/ASTEntityMappingTest.cpp.o: undefined reference to symbol '_ZNK5clang19AttributeCommonInfo35calculateAttributeSpellingListIndexEv'
/usr/bin/ld: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/libclangBasic.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[329/334] Building CXX object tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/CodeCompletionTest.cpp.o
[330/334] Building CXX object tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/IncrementalProcessingTest.cpp.o
[331/334] Linking CXX executable tools/clang/unittests/Sema/SemaTests
[332/334] Linking CXX executable tools/clang/unittests/AllClangUnitTests
ninja: build stopped: subcommand failed.
```

Assisted-By: claude



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list