This is an archive of the discontinued LLVM Phabricator instance.

[zorg] Replace obsolete LLVM_CONFIG_PATH
ClosedPublic

Authored by mgorny on Nov 1 2022, 10:23 PM.

Details

Summary

Replace the obsolete LLVM_CONFIG_PATH uses with LLVM_CMAKE_DIR in case
of compiler-rt, or remove it entirely in case of libcxxabi (as it was
removed a while ago, so the statement was not doing naything). The last
use of LLVM_CONFIG_PATH was deprecated in D137024.

Diff Detail

Event Timeline

mgorny created this revision.Nov 1 2022, 10:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2022, 10:23 PM

D137024 provides backwards compatibility for LLVM_CONFIG_PATH, so we don't have to sync these changes. The idea is to push this one some time later to avoid reverts.

phosek accepted this revision.Nov 1 2022, 10:40 PM
phosek added inline comments.
zorg/buildbot/builders/annotated/ve-linux-steps.make
215

Why is it OK to omit LLVM_CMAKE_DIR here?

zorg/buildbot/builders/sanitizers/buildbot_cmake.sh
239

I'd prefer updating this variable to point to ${ROOT}/llvm_build64 (potentially renaming it as well) and then updating all its uses below to avoid duplicating this path.

zorg/buildbot/builders/sanitizers/buildbot_qemu.sh
212

The same here, I'd prefer updating this variable to point to ${STAGE2_DIR} and then updating its uses below to avoid confusion.

This revision is now accepted and ready to land.Nov 1 2022, 10:40 PM
mgorny added inline comments.Nov 1 2022, 10:42 PM
zorg/buildbot/builders/annotated/ve-linux-steps.make
215

Because libcxxabi didn't support LLVM_CONFIG_PATH already, so it mustn't have done anything.

This revision was landed with ongoing or failed builds.Nov 6 2022, 3:04 AM
This revision was automatically updated to reflect the committed changes.
mgorny added a comment.Nov 9 2022, 1:44 AM

Thanks for letting me know and for the attempted fix. I'd have tried the same thing, so hopefully it'll work.

mgorny added a comment.Nov 9 2022, 2:46 AM

It didn't seem to have worked. I don't really have an idea what's wrong there. Should I revert or do you have something else to try?

It didn't seem to have worked. I don't really have an idea what's wrong there. Should I revert or do you have something else to try?

Already fixed. https://github.com/llvm/llvm-zorg/commit/5f14d865d0c06e47dfdc68219faa2c8e4d10125d
I realized that your patch missed "cd" above, but my "readlink" was too late as well.

Thanks a lot. Yeah, it didn't occur to me that the cwd could have changed at that point.