[PATCH] D99451: Use write_basic_package_version_file for LLVM

Alex Reinking via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 29 03:49:49 PDT 2021


alexreinking added a comment.

In trying to reproduce this, I have done the following.

1. I acquired every officially released CMake version between 3.13 and 3.20 (inclusive; latest patch versions only). I created symbolic links to each version, appropriately named `cmake-${VER}`. Notably, I did not test with the non-official CMake version 3.19.20210119 because I am not sure where to acquire it.
2. I freshly cloned the llvm-project repo from GitHub, revision b082e6f88acffe76841b9095ba024f585174b13a <https://reviews.llvm.org/rGb082e6f88acffe76841b9095ba024f585174b13a>
3. I created a new directory adjacent to the repo
4. From this directory, I used every version of CMake to configure LLVM into separate directories.
5. Also from this directory, I used every version of CMake to configure `runtimes` into separate directories, and against every one of the aforementioned LLVM directories

For step 4, I ran the following command:

  cmake-${CM_VER} -S ../llvm-project/llvm -B llvm/${CM_VER} -DLLVM_ENABLE_PROJECTS=all

For step 5, I ran the following command:

  cmake-${RT_VER} -S ../llvm-project/runtimes -B runtimes/${CM_VER}/${RT_VER} -DLLVM_BUILD_DIR=$PWD/llvm/${CM_VER}

RT_VER is the CMake version used to configure `runtimes` and CM_VER is the CMake version used to configure LLVM.

In all cases, the first configure (ie. clean build) succeeds. I would be very happy to run this experiment again with different combination of commands, cache variables, etc. for either step.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99451/new/

https://reviews.llvm.org/D99451



More information about the llvm-commits mailing list