Commit 9b1c5d4
committed
Try to find the windows resource compiler on the PATH first
In some situations `cc::windows_registry::find_msvc_tool("link.exe")` returns a
`Tool` with an empty environment (without the Windows SDK tools in the
PATH). This happens if link.exe itself was found on the PATH, for
example if you're in a VS Developer Command Prompt.
Update the `find_resource_compiler` to more closely follow how
`cc::windows_registry` does it: first try to find "rc.exe" on the PATH
and only if that fails (and also if "link.exe" isn't on the PATH), try
to locate it indirectly via `find_msvc_tool("link.exe")`1 parent 5d1b897 commit 9b1c5d4
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
152 | 162 | | |
153 | 163 | | |
154 | 164 | | |
| |||
0 commit comments