[PATCH 1/4] winegcc: Recognize .obj files as objects

Connor Abbott cwabbott0 at gmail.com
Fri Jul 2 04:47:58 CDT 2021

For more compatibility with mingw-gcc. Since meson always names object
files with a .obj extension when using mingw, this improves
compatibility with meson.

Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
 tools/winegcc/utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/winegcc/utils.c b/tools/winegcc/utils.c
index 0b82af90683..63d675122c0 100644
--- a/tools/winegcc/utils.c
+++ b/tools/winegcc/utils.c
@@ -230,6 +230,7 @@ file_type get_file_type(const char* filename)
     if (cnt == sizeof(res_sig) && !memcmp(buf, res_sig, sizeof(res_sig))) return file_res;
     if (strendswith(filename, ".o")) return file_obj;
+    if (strendswith(filename, ".obj")) return file_obj;
     if (strendswith(filename, ".a")) return file_arh;
     if (strendswith(filename, ".res")) return file_res;
     if (strendswith(filename, ".so")) return file_so;

More information about the wine-devel mailing list