4747
4848;;;### autoload
4949(defcustom swift-mode:repl-executable
50- " xcrun swift"
50+ ( concat ( when ( executable-find " xcrun" ) " xcrun " ) " swift" )
5151 " Path to the Swift CLI. The string is split by spaces, then unquoted."
5252 :type '(choice string (list string))
5353 :group 'swift-mode:repl
5454 :safe 'stringp )
5555
5656;;;### autoload
5757(defcustom swift-mode:swift-package-executable
58- " xcrun swift package"
58+ ( concat ( when ( executable-find " xcrun" ) " xcrun " ) " swift package" )
5959 " Path to the Swift command for package manipulation.
6060The string is split by spaces, then unquoted."
6161 :type '(choice string (list string))
@@ -64,7 +64,7 @@ The string is split by spaces, then unquoted."
6464
6565;;;### autoload
6666(defcustom swift-mode:swift-build-executable
67- " xcrun swift build"
67+ ( concat ( when ( executable-find " xcrun" ) " xcrun " ) " swift build" )
6868 " Path to the Swift command for building.
6969The string is split by spaces, then unquoted."
7070 :type '(choice string (list string))
@@ -73,7 +73,7 @@ The string is split by spaces, then unquoted."
7373
7474;;;### autoload
7575(defcustom swift-mode:debugger-executable
76- " xcrun lldb"
76+ ( concat ( when ( executable-find " xcrun" ) " xcrun " ) " lldb" )
7777 " Path to the debugger command.
7878The string is split by spaces, then unquoted."
7979 :type '(choice string (list string))
@@ -91,7 +91,7 @@ The string is split by spaces, then unquoted."
9191
9292;;;### autoload
9393(defcustom swift-mode:simulator-controller-executable
94- " xcrun simctl"
94+ ( concat ( when ( executable-find " xcrun" ) " xcrun " ) " simctl" )
9595 " Path to the simulator controller command.
9696The string is split by spaces, then unquoted."
9797 :type '(choice string (list string))
@@ -100,7 +100,7 @@ The string is split by spaces, then unquoted."
100100
101101;;;### autoload
102102(defcustom swift-mode:xcodebuild-executable
103- " xcrun xcodebuild"
103+ ( concat ( when ( executable-find " xcrun" ) " xcrun " ) " xcodebuild" )
104104 " Path to the Xcode builder.
105105The string is split by spaces, then unquoted."
106106 :type '(choice string (list string))
0 commit comments