summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/nimhcr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimhcr.nim b/lib/nimhcr.nim
index 79f3fd350..201d4f5ad 100644
--- a/lib/nimhcr.nim
+++ b/lib/nimhcr.nim
@@ -421,7 +421,7 @@ when defined(createNimHcr):
       modules.add(name, newModuleDesc())
 
     let copiedName = name & ".copy." & dllExt
-    copyFile(name, copiedName)
+    copyFileWithPermissions(name, copiedName)
 
     let lib = loadLib(copiedName)
     assert lib != nil