| ... | ... | @@ -4287,17 +4287,15 @@ static ZigWindowsSDK *get_windows_sdk(CodeGen *g) { |
| 4287 | 4287 | |
| 4288 | 4288 | void find_libc_include_path(CodeGen *g) { |
| 4289 | 4289 | if (!g->libc_include_dir || buf_len(g->libc_include_dir) == 0) { |
| 4290 | | ZigWindowsSDK *sdk = get_windows_sdk(g); |
| 4291 | 4290 | |
| 4292 | 4291 | if (g->zig_target.os == OsWindows) { |
| 4292 | ZigWindowsSDK *sdk = get_windows_sdk(g); |
| 4293 | 4293 | if (os_get_win32_ucrt_include_path(sdk, g->libc_include_dir)) { |
| 4294 | 4294 | zig_panic("Unable to determine libc include path."); |
| 4295 | 4295 | } |
| 4296 | 4296 | } |
| 4297 | | } |
| 4298 | 4297 | |
| 4299 | | // TODO find libc at runtime for other operating systems |
| 4300 | | if(!g->libc_include_dir || buf_len(g->libc_include_dir) == 0) { |
| 4298 | // TODO find libc at runtime for other operating systems |
| 4301 | 4299 | zig_panic("Unable to determine libc include path."); |
| 4302 | 4300 | } |
| 4303 | 4301 | } |