Skip to content

Commit 9b33713

Browse files
authored
Merge pull request #152 from juergenhoetzel/handle-missing-commands
Check for missing compile/build commands
2 parents 0862f70 + 9eefd21 commit 9b33713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fsharp-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ Otherwise, treat as a stand-alone file."
298298
(file-exists-p (concat dname "/makefile")))))
299299
(cond
300300
(makefile compile-command)
301-
(proj (combine-and-quote-strings (list fsharp-build-command "/nologo" proj)))
302-
((or (equal ext "fs") (equal ext "fsx")) (combine-and-quote-strings (list fsharp-compile-command "--nologo" file)))
301+
((and fsharp-build-command proj) (combine-and-quote-strings `(,fsharp-build-command "/nologo" ,proj)))
302+
((and fsharp-compile-command (member ext '("fs" "fsx"))) (combine-and-quote-strings `(,fsharp-compile-command "--nologo" ,file)))
303303
((equal ext "fsl") (combine-and-quote-strings (list "fslex" file)))
304304
((equal ext "fsy") (combine-and-quote-strings (list "fsyacc" file)))
305305
(t compile-command))))

0 commit comments

Comments
 (0)