We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abafb49 commit f6187deCopy full SHA for f6187de
llvm/tools/llc/llc.cpp
@@ -760,6 +760,9 @@ static int compileModule(char **argv, LLVMContext &Context) {
760
761
// Declare success.
762
Out->keep();
763
+ // Try to make the output executable, some build systems depend on it
764
+ sys::fs::perms NewPerms = static_cast<sys::fs::perms>(0755);
765
+ sys::fs::setPermissions(OutputFilename, NewPerms);
766
if (DwoOut)
767
DwoOut->keep();
768
0 commit comments