Jacek Caban jacek@codeweavers.com writes:
@@ -635,6 +635,21 @@ static const char *get_multiarch_dir( enum target_cpu cpu ) } }
+static const char *get_pe_arch_dir( enum target_cpu cpu ) +{
- switch(cpu)
- {
- case CPU_x86: return "/i386";
- case CPU_x86_64: return "/x86_64";
- case CPU_ARM: return "/arm";
- case CPU_ARM64: return "/aarch64";
- case CPU_POWERPC: return "/powerpc";
- default:
assert(0);
return NULL;
- }
+}
I'm wondering if we shouldn't put everything into arch-specific subdirs, for generic cross-compilation support, and for 32on64 where we can't rely on the host multi-arch support.
Maybe something like /i686-linux-gnu for .so and .def files, and /i686-w64-mingw32 for PE dlls and import libs?