mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-22 07:48:35 +00:00
add .exe to the end of compiled C files on windows
Thanks to Richard Stanton for pointing out this problem and suggesting the fix. * lisp/ob-C.el (org-babel-C-execute): Add .exe to the end of compiled C files on windows.
This commit is contained in:
parent
90336ceb49
commit
e5dc30f238
|
@ -88,7 +88,9 @@ or `org-babel-execute:C++'."
|
|||
(cond
|
||||
((equal org-babel-c-variant 'c) ".c")
|
||||
((equal org-babel-c-variant 'cpp) ".cpp"))))
|
||||
(tmp-bin-file (org-babel-temp-file "C-bin-"))
|
||||
(tmp-bin-file (org-babel-temp-file
|
||||
"C-bin-"
|
||||
(if (equal system-type 'windows-nt) ".exe" "")))
|
||||
(cmdline (cdr (assoc :cmdline params)))
|
||||
(flags (cdr (assoc :flags params)))
|
||||
(full-body (org-babel-C-expand body params))
|
||||
|
|
Loading…
Reference in a new issue