commit | e0e40d413155f1a8a7e9c13025cd81a7a3bc76b1 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Wed Jan 09 04:39:29 2019 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Wed Jan 09 04:39:29 2019 +0000 |
tree | b23316ba124acb7df65bd5d864e6472c5570b1c9 | |
parent | 04492321fc57716464312a20ec7ff83631c3ef43 [diff] |
gn build: Copy file permissions from input file in configure_file() emulation. Most significantly, this makes bin/llvm-lit executable so that it can be run in the usual way. Differential Revision: https://reviews.llvm.org/D56423 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350688 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/gn/build/write_cmake_config.py b/utils/gn/build/write_cmake_config.py index 0f47654..f0d0a00 100755 --- a/utils/gn/build/write_cmake_config.py +++ b/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__':