Skip to content

Commit fc5881a

Browse files
committed
Fix mac related file permission issues
Fixes #455
1 parent 49af1b8 commit fc5881a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dap-cpptools.el

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,16 @@ With prefix, FORCED to redownload the extension."
5858
(unless (and (not forced) (file-exists-p dap-cpptools-debug-path))
5959
(dap-utils--get-extension dap-cpptools-download-url dap-cpptools-debug-path)
6060
(let* ((adapter-binary (cl-first dap-cpptools-debug-program))
61-
(mono (f-join (f-parent adapter-binary) "mono.linux-x86_64")))
61+
(mono (f-join (f-parent adapter-binary) "mono.linux-x86_64"))
62+
(mono-mac (f-join (f-parent adapter-binary) "mono.osx"))
63+
(lldb-mi (f-join (f-parent adapter-binary) "lldb-mi/bin/lldb-mi")))
6264
(set-file-modes adapter-binary #o0700)
6365
(when (f-exists? mono)
64-
(set-file-modes mono #o0700)))
66+
(set-file-modes mono #o0700))
67+
(when (f-exists? mono-mac)
68+
(set-file-modes mono #o0700))
69+
(when (f-exists? lldb-mi)
70+
(set-file-modes lldb-mi #o0700)))
6571

6672
(message "%s: Downloading done!" "dap-cpptools")))
6773

0 commit comments

Comments
 (0)