ob-fortran: Use a defcustom for fortran compiler

* lisp/ob-fortran.el (org-babel-fortran-compiler): Change `defvar' to
`defcustom' so that the fortran compiler is customizable like almost
all other org-babel compilers.

TINYCHANGE

Sometimes the compiler isn't `gfortran` (but e.g. `gfortran10`
etc.). Accomodate for that like we do with all other org-babel
language integrations.
This commit is contained in:
Nico Sonack 2021-06-28 11:07:10 +02:00 committed by Nicolas Goaziou
parent d1900adfbe
commit f76d4d103f

View file

@ -40,9 +40,11 @@
(defvar org-babel-default-header-args:fortran '())
(defvar org-babel-fortran-compiler "gfortran"
"fortran command used to compile a fortran source code file into an
executable.")
(defcustom org-babel-fortran-compiler "gfortran"
"Fortran command used to compile Fortran source code file."
:group 'org-babel
:package-version '(Org . "9.5")
:type 'string)
(defun org-babel-execute:fortran (body params)
"This function should only be called by `org-babel-execute:fortran'."