This is an archive of the discontinued LLVM Phabricator instance.

[build] Fix stand-alone builds of clang.
ClosedPublic

Authored by fpetrogalli on Jan 23 2023, 1:47 PM.

Details

Summary

The target RISCVTargetParserTablegen needs to be visible for stand-alone [1] builds of clang to prevent configuration failures.

[1] https://llvm.org/docs/GettingStarted.html#stand-alone-builds

Diff Detail

Event Timeline

fpetrogalli created this revision.Jan 23 2023, 1:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 1:47 PM
fpetrogalli requested review of this revision.Jan 23 2023, 1:47 PM

This is still the wrong change IMO. I don't know, maybe I'm not being clear, but I don't 'think you ever actually tried my suggestion in D141581 which was to leave the RISCVTargetParserTableGen Depends as is and add the pseudo targets in llvm/cmake/modules/LLVMConfig.cmake.in.

This is still the wrong change IMO. I don't know, maybe I'm not being clear, but I don't 'think you ever actually tried my suggestion in D141581 which was to leave the RISCVTargetParserTableGen Depends as is and add the pseudo targets in llvm/cmake/modules/LLVMConfig.cmake.in.

We'll get there! I think I missed the "leave the RISCVTargetParserTableGen in the DEPENDS, sorry about that.

This is still the wrong change IMO. I don't know, maybe I'm not being clear, but I don't 'think you ever actually tried my suggestion in D141581 which was to leave the RISCVTargetParserTableGen Depends as is and add the pseudo targets in llvm/cmake/modules/LLVMConfig.cmake.in.

We'll get there! I think I missed the "leave the RISCVTargetParserTableGen in the DEPENDS, sorry about that.

No problem! Thanks for sticking with it.

Address code review.

Herald added a project: Restricted Project. · View Herald Transcript
fpetrogalli retitled this revision from [build] Force building LLVMTargetParser before other non-LLVM components. to [build] Fix stand-alone builds of clang..Jan 23 2023, 2:02 PM
fpetrogalli edited the summary of this revision. (Show Details)
tstellar accepted this revision.Jan 23 2023, 3:55 PM

LGTM. I tested and this fixes the build.

This revision is now accepted and ready to land.Jan 23 2023, 3:55 PM
This revision was landed with ongoing or failed builds.Jan 23 2023, 3:57 PM
This revision was automatically updated to reflect the committed changes.

LGTM. I tested and this fixes the build.

Thank you @tstellar, I landed it. I am going offline for until tomorrow morning - feel free to revert it if the world of bots collapses :)

@mgorny - is this fixing also your builds?

LGTM. I tested and this fixes the build.

@tstellar , I wonder how your build (and mine too, in fact) didn't complain about the typo... luckily the bots cover this functionality! Anyway, I have re-landed it as https://reviews.llvm.org/rGaa19429b19b6a8d44a671a93bf9c00570bad53ac.