We can just use the definition from config.h. This means we need to move
a few lines around in CMakeLists.txt - the TF_AOT detection needs to be
before the spot we process the config.h.cmake files.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Are you sure you can include config.h in an installed header file? AFAICT, config.h isn't installed, but llvm-config.h is.
edit: this breaks the build of a certain downstream front-end for me
Ah, I see:
install(DIRECTORY ${LLVM_INCLUDE_DIR}/llvm ${LLVM_INCLUDE_DIR}/llvm-c DESTINATION include COMPONENT llvm-headers FILES_MATCHING PATTERN "*.def" PATTERN "*.h" PATTERN "*.gen" PATTERN "*.inc" # Exclude include/llvm/CMakeFiles/intrinsics_gen.dir, matched by "*.def" PATTERN "CMakeFiles" EXCLUDE PATTERN "config.h" EXCLUDE PATTERN ".svn" EXCLUDE )
huh. How does include/llvm/Support/Windows/WindowsSupport.h include llvm/Config/config.h though... weird. In any case, I'll move the _AOT definition to llvm_config.h.cmake. Sorry for the trouble!
Looks like another bug if it's also in WindowsSupport.h ... but not one that is biting me at the moment. No worries and thanks for fixing!
llvm/include/llvm/Analysis/InlineAdvisor.h | ||
---|---|---|
17 | This seems to break installed builds because llvm/Config/config.h does not appear to be created in the installed tree. Do you mind if we roll back this change? |
llvm/include/llvm/Analysis/InlineAdvisor.h | ||
---|---|---|
17 | Please see fix in https://reviews.llvm.org/D84459 |
This seems to break installed builds because llvm/Config/config.h does not appear to be created in the installed tree. Do you mind if we roll back this change?