Commit 15a0102
committed
CMake4.0 Fixes: Only pass sdk to swift when set
CMake 4.0 does not specify CMAKE_OSX_SYSROOT unless it is set
explicitly. When this is the case, passing the `-sdk` flag with an empty
path confuses the compiler and results in build failures.
This patch fixes things to only pass the sdk to the Swift compiler when
the SDK is actually set.1 parent 71d49a1 commit 15a0102
File tree
2 files changed
+4
-4
lines changed- 3_bidirectional_cxx_interop/cmake/modules
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments