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