From 0f16287bc53d2c4e678c1ae8e96357dc162e93e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80?= <2447746158@qq.com> Date: Wed, 1 Feb 2023 13:53:43 +0800 Subject: [PATCH] run `makeFileExecutable` only on macOS --- src/Compiler/Compile.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Compiler/Compile.hs b/src/Compiler/Compile.hs index faca8b486..e23c1ea90 100644 --- a/src/Compiler/Compile.hs +++ b/src/Compiler/Compile.hs @@ -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:") <+>