[MLPolicies] Fix dependency and -DBUILD_SHARED_LIBS=on builds after D80579

This commit is contained in:
Fangrui Song 2020-05-27 15:21:08 -07:00
parent cf86a234ba
commit 993bbaf6a3
5 changed files with 27 additions and 10 deletions

View File

@ -108,9 +108,4 @@ add_llvm_component_library(LLVMAnalysis
DEPENDS
intrinsics_gen
LLVMMLPolicies
LINK_LIBS
LLVMMLPolicies
)

View File

@ -14,6 +14,9 @@
;
;===------------------------------------------------------------------------===;
[common]
subdirectories = ML
[component_0]
type = Library
name = Analysis

View File

@ -1,7 +1,5 @@
set (SOURCES InlineFeaturesAnalysis.cpp)
add_llvm_library(LLVMMLPolicies
${SOURCES}
add_llvm_component_library(LLVMMLPolicies
InlineFeaturesAnalysis.cpp
DEPENDS
intrinsics_gen

View File

@ -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

View File

@ -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