Skip to content

Commit

Permalink
[MLPolicies] Fix dependency and -DBUILD_SHARED_LIBS=on builds after D…
Browse files Browse the repository at this point in the history
…80579
  • Loading branch information
MaskRay committed May 27, 2020
1 parent cf86a23 commit 993bbaf
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
5 changes: 0 additions & 5 deletions llvm/lib/Analysis/CMakeLists.txt
Expand Up @@ -108,9 +108,4 @@ add_llvm_component_library(LLVMAnalysis

DEPENDS
intrinsics_gen
LLVMMLPolicies


LINK_LIBS
LLVMMLPolicies
)
3 changes: 3 additions & 0 deletions llvm/lib/Analysis/LLVMBuild.txt
Expand Up @@ -14,6 +14,9 @@
;
;===------------------------------------------------------------------------===;

[common]
subdirectories = ML

[component_0]
type = Library
name = Analysis
Expand Down
6 changes: 2 additions & 4 deletions llvm/lib/Analysis/ML/CMakeLists.txt
@@ -1,7 +1,5 @@
set (SOURCES InlineFeaturesAnalysis.cpp)

add_llvm_library(LLVMMLPolicies
${SOURCES}
add_llvm_component_library(LLVMMLPolicies
InlineFeaturesAnalysis.cpp

DEPENDS
intrinsics_gen
Expand Down
21 changes: 21 additions & 0 deletions llvm/lib/Analysis/ML/LLVMBuild.txt
@@ -0,0 +1,21 @@
;===- ./lib/Analysis/ML/LLVMBuild.txt --------------------------*- Conf -*--===;
;
; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
; See https://llvm.org/LICENSE.txt for license information.
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
;
;===------------------------------------------------------------------------===;
;
; This is an LLVMBuild description file for the components in this subdirectory.
;
; For more information on the LLVMBuild system, please see:
;
; http://llvm.org/docs/LLVMBuild.html
;
;===------------------------------------------------------------------------===;

[component_0]
type = Library
name = MLPolicies
parent = Analysis
required_libraries = Core Support
2 changes: 1 addition & 1 deletion llvm/lib/Passes/LLVMBuild.txt
Expand Up @@ -18,4 +18,4 @@
type = Library
name = Passes
parent = Libraries
required_libraries = AggressiveInstCombine Analysis CodeGen Core Coroutines IPO InstCombine Scalar Support Target TransformUtils Vectorize Instrumentation
required_libraries = AggressiveInstCombine Analysis MLPolicies CodeGen Core Coroutines IPO InstCombine Scalar Support Target TransformUtils Vectorize Instrumentation

0 comments on commit 993bbaf

Please sign in to comment.