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