Skip to content

Commit

Permalink
run makeFileExecutable only on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleJianCH committed Feb 1, 2023
1 parent 24e1f4c commit 0f16287
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Compiler/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,8 @@ codeGen term flags compileTarget loaded
when (osName == "macos") $
removeFileIfExists targetOut -- needed on macOS due to code signing issues (see https://developer.apple.com/forums/thread/669145)
copyBinaryFile out targetOut
makeFileExecutable targetOut
when (osName == "macos") $
makeFileExecutable targetOut
return finalOut
else return out
termPhaseDoc term $ color (colorInterpreter (colorScheme flags)) (text "created:") <+>
Expand Down

0 comments on commit 0f16287

Please sign in to comment.