This is an archive of the discontinued LLVM Phabricator instance.

Replace the use of TARGET_TRIPLE
ClosedPublic

Authored by phosek on Feb 17 2022, 1:23 AM.

Details

Summary

This is an internal variable that's being renamed to LLVM_TARGET_TRIPLE
in D119918, instead use LLVM_DEFAULT_TARGET_TRIPLE.

Diff Detail

Event Timeline

phosek requested review of this revision.Feb 17 2022, 1:23 AM
phosek created this revision.
rovka accepted this revision.Feb 17 2022, 4:42 AM

LGTM, thanks!

This revision is now accepted and ready to land.Feb 17 2022, 4:42 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 12:50 PM

Hi @phosek,

the TARGET_TRIPLE is a parameter for the CrossWinToARMLinux.cmake cache file and used within it to configure the build, including LLVM_DEFAULT_TARGET_TRIPLE. Your changes will break the Win-to-Linux cross toolchain builds.
Would you revert your commit?

Those builders are currently on staging buildbot.

https://lab.llvm.org/staging/#/builders/36
https://lab.llvm.org/staging/#/builders/41

Aarch64 will be moved to the regular buildbot soon.
Armv7 got some problems (crash for some libc++ test) and it still under investigation.

phosek added a comment.Mar 4 2022, 2:08 PM

Those builders are currently on staging buildbot.

https://lab.llvm.org/staging/#/builders/36
https://lab.llvm.org/staging/#/builders/41

Aarch64 will be moved to the regular buildbot soon.
Armv7 got some problems (crash for some libc++ test) and it still under investigation.

I was planning on landing https://reviews.llvm.org/D119918 which renames TARGET_TRIPLE in CrossWinToARMLinux.cmake, would that address the issue?

I was planning on landing https://reviews.llvm.org/D119918 which renames TARGET_TRIPLE in CrossWinToARMLinux.cmake, would that address the issue?

This differential uses the old version of CrossWinToARMLinux.cmake and this cache file got a lot of changes currently. These changes will break merging of your changes.

Also, TARGET_TRIPLE is using only within the cache file. It should not interfere with other your changes. Or you want to wipe out any allusion to TARGET_RIPLE within the source tree?

phosek added a comment.Mar 4 2022, 2:38 PM

I was planning on landing https://reviews.llvm.org/D119918 which renames TARGET_TRIPLE in CrossWinToARMLinux.cmake, would that address the issue?

This differential uses the old version of CrossWinToARMLinux.cmake and this cache file got a lot of changes currently. These changes will break merging of your changes.

Also, TARGET_TRIPLE is using only within the cache file. It should not interfere with other your changes. Or you want to wipe out any allusion to TARGET_RIPLE within the source tree?

I'm fine for CrossWinToARMLinux.cmake to continue using TARGET_TRIPLE to make it explicit that it's *not* the same variable as LLVM_TARGET_TRIPLE and avoid similar mistakes as I did in the future. I have reverted this change and updated D119918 and excluded CrossWinToARMLinux.cmake.

I'm testing https://reviews.llvm.org/D119918 locally on the builders. Looks like TARGET_TRIPLE as a cache file parameter slightly affects the configuration. I'm getting the warnings during the initial configuration.
I'll replace the parameter name to TOOLCHAIN_TARGET_TRIPLE to avoid the possible future mistakes and just in case.

I'll update the cache file and the buildbot configuration.