File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -225,12 +225,14 @@ public:
225
225
}
226
226
}
227
227
228
- version (IN_LLVM) {} else
229
- {
230
- // try mingw fallback relative to phobos library folder that's part of LIB
228
+ return null ;
229
+ }
230
+
231
+ const (char )* getBuiltinLibPath () const
232
+ {
233
+ version (IN_LLVM)
231
234
if (auto p = FileName.searchPath(getenv(" LIB" w), r " mingw\kernel32.lib" [], false ))
232
235
return FileName.path(p).ptr;
233
- }
234
236
235
237
return null ;
236
238
}
@@ -326,6 +328,12 @@ version (IN_LLVM) { /* not needed */ } else
326
328
cmdbuf.writestring(p);
327
329
cmdbuf.writeByte(' \" ' );
328
330
}
331
+ if (auto p = getBuiltinLibPath())
332
+ {
333
+ cmdbuf.writestring(" /LIBPATH:\" " );
334
+ cmdbuf.writestring(p);
335
+ cmdbuf.writeByte(' \" ' );
336
+ }
329
337
if (auto p = getenv(" DXSDK_DIR" w))
330
338
{
331
339
// support for old DX SDK installations
You can’t perform that action at this time.
0 commit comments