[llvm-branch-commits] [clang] a0fc8a2 - [clang-scan-deps] Fix builds with BUILD_SHARED_LIBS=ON

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Sep 30 23:53:19 PDT 2024


Author: Martin Storsjö
Date: 2024-10-01T08:53:03+02:00
New Revision: a0fc8a2b2b85a70c8c523ff2d1fe4ef2e86cda7f

URL: https://github.com/llvm/llvm-project/commit/a0fc8a2b2b85a70c8c523ff2d1fe4ef2e86cda7f
DIFF: https://github.com/llvm/llvm-project/commit/a0fc8a2b2b85a70c8c523ff2d1fe4ef2e86cda7f.diff

LOG: [clang-scan-deps] Fix builds with BUILD_SHARED_LIBS=ON

This fixes building in this configuration after
87e1104cf0e2de0d04bee2944893fa7897277b2f.

(cherry picked from commit aa3465793a250faa5426ac626989375465256658)

Added: 
    

Modified: 
    clang/tools/clang-scan-deps/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang/tools/clang-scan-deps/CMakeLists.txt b/clang/tools/clang-scan-deps/CMakeLists.txt
index f0be6a546ff882..10bc0ff23c5482 100644
--- a/clang/tools/clang-scan-deps/CMakeLists.txt
+++ b/clang/tools/clang-scan-deps/CMakeLists.txt
@@ -1,4 +1,5 @@
 set(LLVM_LINK_COMPONENTS
+  ${LLVM_TARGETS_TO_BUILD}
   Core
   Option
   Support


        


More information about the llvm-branch-commits mailing list