Skip to content

Commit

Permalink
Fixed dependency error.
Browse files Browse the repository at this point in the history
"llvm/IR/IntrinsicEnums.inc", which is part of LLVMDebugInfoDWARF, is required when building create_llvm_prof.cc Added LLVMDebugInfoDWARF to create_llvm_prof.cc's dep list.

It is a confluence of circumstances that this error was not caught while building on my workstation, the reason being that it has so many cores (>100), that LLVMDebugInfoDWARF is built as other's deplist, prior to create_llvm_prof.cc. I reproduced it when building on my other workstation with 24 cores.
  • Loading branch information
shenhanc78 authored and shenhanc committed Apr 4, 2024
1 parent 31d9d06 commit 34bb61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function (config_with_llvm)
add_dependencies(llvm_propeller_mock_whole_program_info llvm_propeller_options)
add_dependencies(llvm_propeller_mock_whole_program_info llvm_propeller_cfg_proto)
add_library(create_llvm_prof_object OBJECT create_llvm_prof.cc)
add_dependencies(create_llvm_prof_object llvm_propeller_options)
add_dependencies(create_llvm_prof_object llvm_propeller_options LLVMDebugInfoDWARF)

add_library(sample_reader OBJECT sample_reader.cc)
target_include_directories(sample_reader PUBLIC util)
Expand Down

0 comments on commit 34bb61c

Please sign in to comment.