[PATCH] D56423: gn build: Copy file permissions from input file in configure_file() emulation.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 8 20:12:15 PST 2019
pcc updated this revision to Diff 180785.
pcc added a comment.
- Move chmod inside the if
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56423/new/
https://reviews.llvm.org/D56423
Files:
llvm/utils/gn/build/write_cmake_config.py
Index: llvm/utils/gn/build/write_cmake_config.py
===================================================================
--- llvm/utils/gn/build/write_cmake_config.py
+++ llvm/utils/gn/build/write_cmake_config.py
@@ -101,6 +101,7 @@
if not os.path.exists(args.output) or open(args.output).read() != output:
open(args.output, 'w').write(output)
+ os.chmod(args.output, os.stat(args.input).st_mode & 0777)
if __name__ == '__main__':
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56423.180785.patch
Type: text/x-patch
Size: 455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190109/ca00f18b/attachment.bin>
More information about the llvm-commits
mailing list