Skip to content

Commit 4ebd40a

Browse files
committed
Fix build error, include generated headers
1 parent a52fabe commit 4ebd40a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
add_llvm_library(LLVMBOLTTargetPowerPC
22
PPCMCPlusBuilder.cpp
3-
)
3+
)
44

55
target_include_directories(LLVMBOLTTargetPowerPC PRIVATE
66
${LLVM_BINARY_DIR}/include
77
${LLVM_SOURCE_DIR}/include
8+
)
9+
10+
file(MAKE_DIRECTORY "${LLVM_BINARY_DIR}/include/llvm/Target/PowerPC")
11+
12+
add_custom_command(TARGET LLVMBOLTTargetPowerPC POST_BUILD
13+
COMMAND ${CMAKE_COMMAND} -E copy_if_different
14+
"${LLVM_BINARY_DIR}/lib/Target/PowerPC/PPCGenInstrInfo.inc"
15+
"${LLVM_BINARY_DIR}/include/llvm/Target/PowerPC/PPCGenInstrInfo.inc"
816
)

0 commit comments

Comments
 (0)