mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
default to llvm-mt on non-windows platforms
This commit is contained in:
@@ -496,7 +496,6 @@ lnk_get_mt_path(Arena *arena)
|
|||||||
#undef OS_WINDOWS
|
#undef OS_WINDOWS
|
||||||
#pragma comment(lib, "shlwapi.lib")
|
#pragma comment(lib, "shlwapi.lib")
|
||||||
#include <shlwapi.h>
|
#include <shlwapi.h>
|
||||||
|
|
||||||
local_persist wchar_t raw_mt_path[MAX_PATH*2] = L"mt.exe";
|
local_persist wchar_t raw_mt_path[MAX_PATH*2] = L"mt.exe";
|
||||||
PathFindOnPathW(&raw_mt_path[0], 0);
|
PathFindOnPathW(&raw_mt_path[0], 0);
|
||||||
|
|
||||||
@@ -504,11 +503,10 @@ lnk_get_mt_path(Arena *arena)
|
|||||||
String8 mt_path = str8_from_16(arena, mt_path_16);
|
String8 mt_path = str8_from_16(arena, mt_path_16);
|
||||||
|
|
||||||
mt_path = path_convert_slashes(arena, mt_path, PathStyle_WindowsAbsolute);
|
mt_path = path_convert_slashes(arena, mt_path, PathStyle_WindowsAbsolute);
|
||||||
|
|
||||||
#undef OS_WINDOWS
|
#undef OS_WINDOWS
|
||||||
#define OS_WINDOWS 1
|
#define OS_WINDOWS 1
|
||||||
#else
|
#else
|
||||||
#error "TODO: find llvm-mt"
|
mt_path = str8_lit("llvm-mt.exe");
|
||||||
#endif
|
#endif
|
||||||
return mt_path;
|
return mt_path;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user