Commit 824c66a
committed
CMake: Improving missing compiler error message
Right now, if you have the new parser enabled and try to configure
without an existing Swift compiler, the configuration fails due to a
call to 'get_filename_component' with the wrong number of arguments.
This is is because the `CMAKE_Swift_COMPILER` is empty and doesn't
expand to anything here:
```
get_filename_component(swift_bin_dir ${CMAKE_Swift_COMPILER} DIRECTORY)
```
The current error is not clear about why it failed though. Improving the
error message so that other people can look at it and see that it's
because the compiler is missing.1 parent 840ed6a commit 824c66a
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
971 | 978 | | |
972 | 979 | | |
973 | 980 | | |
| |||
0 commit comments