[flang-commits] [flang] d89c5ae - [Flang] Fixed installation permission of the "binary" flang
Shilei Tian via flang-commits
flang-commits at lists.llvm.org
Wed Sep 16 15:54:31 PDT 2020
Author: Shilei Tian
Date: 2020-09-16T18:54:24-04:00
New Revision: d89c5ae8577264f5dd660906f12577c5fdadf49e
URL: https://github.com/llvm/llvm-project/commit/d89c5ae8577264f5dd660906f12577c5fdadf49e
DIFF: https://github.com/llvm/llvm-project/commit/d89c5ae8577264f5dd660906f12577c5fdadf49e.diff
LOG: [Flang] Fixed installation permission of the "binary" flang
Under current configuration, the permission of `flang` after installation is 700.
This could bring a problem for system administrators who build and install flang
for other users, which only the user who builds LLVM can execute it, and others
can not. In this patch, the explicit permission setting in the `install` command
is removed, and let CMake determine what perssion to be used like other components.
Reviewed By: DavidTruby
Differential Revision: https://reviews.llvm.org/D87783
Added:
Modified:
flang/tools/f18/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
index b92733d8374e..64ccf12505fe 100644
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -84,4 +84,4 @@ set(FLANG_INTRINSIC_MODULES_DIR ${CMAKE_INSTALL_PREFIX}/include/flang)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/flang.sh.in ${FLANG_BINARY_DIR}/bin/flang-install.sh @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/f18_version.h.in ${CMAKE_CURRENT_BINARY_DIR}/f18_version.h @ONLY)
-install(PROGRAMS ${FLANG_BINARY_DIR}/bin/flang-install.sh DESTINATION bin RENAME flang PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE)
+install(PROGRAMS ${FLANG_BINARY_DIR}/bin/flang-install.sh DESTINATION bin RENAME flang)
More information about the flang-commits
mailing list