[DirectX] Fix shared libraries build
I just tried to build all experimental targets and noticed that DirectX did not build with -DBUILD_SHARED_LIBS=ON. Differential Revision: https://reviews.llvm.org/D138431
This commit is contained in:
parent
2de8f1f652
commit
f7ae55f03d
|
@ -27,16 +27,22 @@ add_llvm_target(DirectXCodeGen
|
|||
DXILResourceAnalysis.cpp
|
||||
DXILShaderFlags.cpp
|
||||
DXILTranslateMetadata.cpp
|
||||
PointerTypeAnalysis.cpp
|
||||
|
||||
LINK_COMPONENTS
|
||||
Analysis
|
||||
AsmPrinter
|
||||
Core
|
||||
CodeGen
|
||||
SelectionDAG
|
||||
Support
|
||||
DirectXDesc
|
||||
DirectXInfo
|
||||
DirectXPointerTypeAnalysis
|
||||
DXILBitWriter
|
||||
FrontendHLSL
|
||||
MC
|
||||
Target
|
||||
TransformUtils
|
||||
|
||||
ADD_TO_COMPONENT
|
||||
DirectX
|
||||
|
@ -44,4 +50,5 @@ add_llvm_target(DirectXCodeGen
|
|||
|
||||
add_subdirectory(MCTargetDesc)
|
||||
add_subdirectory(TargetInfo)
|
||||
add_subdirectory(DirectXIRPasses)
|
||||
add_subdirectory(DXILWriter)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "DirectX.h"
|
||||
#include "PointerTypeAnalysis.h"
|
||||
#include "DirectXIRPasses/PointerTypeAnalysis.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
|
|
|
@ -9,8 +9,10 @@ add_llvm_component_library(LLVMDXILBitWriter
|
|||
intrinsics_gen
|
||||
|
||||
LINK_COMPONENTS
|
||||
Analysis
|
||||
BitWriter
|
||||
Core
|
||||
DirectXPointerTypeAnalysis
|
||||
MC
|
||||
Object
|
||||
Support
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include "DXILBitcodeWriter.h"
|
||||
#include "DXILValueEnumerator.h"
|
||||
#include "PointerTypeAnalysis.h"
|
||||
#include "DirectXIRPasses/PointerTypeAnalysis.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
#include "llvm/Bitcode/BitcodeCommon.h"
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
add_llvm_component_library(LLVMDirectXPointerTypeAnalysis
|
||||
PointerTypeAnalysis.cpp
|
||||
|
||||
LINK_COMPONENTS
|
||||
Core
|
||||
Support
|
||||
|
||||
ADD_TO_COMPONENT
|
||||
DirectX
|
||||
)
|
|
@ -4,6 +4,7 @@ add_llvm_component_library(LLVMDirectXDesc
|
|||
|
||||
LINK_COMPONENTS
|
||||
DirectXInfo
|
||||
MC
|
||||
Support
|
||||
|
||||
ADD_TO_COMPONENT
|
||||
|
|
Loading…
Reference in New Issue