[llvm] r350700 - Make the write_cmake_config.py script python3-compatible
Alexander Kornienko via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 9 02:49:44 PST 2019
Author: alexfh
Date: Wed Jan 9 02:49:44 2019
New Revision: 350700
URL: http://llvm.org/viewvc/llvm-project?rev=350700&view=rev
Log:
Make the write_cmake_config.py script python3-compatible
Modified:
llvm/trunk/utils/gn/build/write_cmake_config.py
Modified: llvm/trunk/utils/gn/build/write_cmake_config.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/build/write_cmake_config.py?rev=350700&r1=350699&r2=350700&view=diff
==============================================================================
--- llvm/trunk/utils/gn/build/write_cmake_config.py (original)
+++ llvm/trunk/utils/gn/build/write_cmake_config.py Wed Jan 9 02:49:44 2019
@@ -101,7 +101,7 @@ def main():
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)
+ os.chmod(args.output, os.stat(args.input).st_mode & 0o777)
if __name__ == '__main__':
More information about the llvm-commits
mailing list