[all-commits] [llvm/llvm-project] efe152: [CMake] Copy folder without permissions

Sebastian Neubauer via All-commits all-commits at lists.llvm.org
Mon Jul 25 01:48:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: efe1527e28ca45d2217d874364a1197de6ec156d
      https://github.com/llvm/llvm-project/commit/efe1527e28ca45d2217d874364a1197de6ec156d
  Author: Sebastian Neubauer <Sebastian.Neubauer at amd.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M clang/cmake/modules/CMakeLists.txt
    M llvm/cmake/modules/CMakeLists.txt
    M mlir/cmake/modules/CMakeLists.txt

  Log Message:
  -----------
  [CMake] Copy folder without permissions

Copying the folder keeps the original permissions by default. This
creates problems when the source folder is read-only, e.g. in a
packaging environment.
Then, the copied folder in the build directory is read-only as well.
Later on, other files are copied into that directory (in the build
tree), failing when the directory is read-only.

Fix that problem by copying the folder without keeping the original
permissions.

Follow-up to D130254.

Differential Revision: https://reviews.llvm.org/D130338




More information about the All-commits mailing list