mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[WIDL] Properly pass architecture flag instead of modifying the code
This reverts commit 73c776c744
"[WIDL] Fix non-x86 builds".
This commit is contained in:
parent
1b14ce5db3
commit
995e4c829a
3 changed files with 12 additions and 9 deletions
|
@ -140,6 +140,10 @@ if(NOT CMAKE_CROSSCOMPILING)
|
|||
add_definitions(/D_X86_ /D__i386__ /DWIN32 /D_WINDOWS)
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
add_definitions(-D_AMD64_ -D__x86_64__ /DWIN32 -D_WINDOWS)
|
||||
elseif(ARCH STREQUAL "arm")
|
||||
add_definitions(-D__arm__)
|
||||
elseif(ARCH STREQUAL "arm64")
|
||||
add_definitions(-D__aarch64__)
|
||||
endif()
|
||||
if(MSVC_VERSION GREATER 1699)
|
||||
add_definitions(/D_ALLOW_KEYWORD_MACROS)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
|
||||
#idl files support
|
||||
if(ARCH STREQUAL "i386")
|
||||
set(IDL_FLAGS -m32 --win32)
|
||||
set(IDL_FLAGS -m32 --win32 -b i386-x-y)
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
set(IDL_FLAGS -m64 --win64)
|
||||
set(IDL_FLAGS -m64 --win64 -b amd64-x-y)
|
||||
else()
|
||||
set(IDL_FLAGS "")
|
||||
set(IDL_FLAGS -b ${ARCH}-x-y)
|
||||
endif()
|
||||
|
||||
function(add_typelib)
|
||||
|
|
|
@ -92,16 +92,15 @@ static const char usage[] =
|
|||
static const char version_string[] = "Wine IDL Compiler version " PACKAGE_VERSION "\n"
|
||||
"Copyright 2002 Ove Kaaven\n";
|
||||
|
||||
// __REACTOS__!! We must use TARGET_ macros here!
|
||||
#ifdef TARGET_i386
|
||||
#ifdef __i386__
|
||||
enum target_cpu target_cpu = CPU_x86;
|
||||
#elif defined(TARGET_amd64)
|
||||
#elif defined(__x86_64__)
|
||||
enum target_cpu target_cpu = CPU_x86_64;
|
||||
#elif defined(TARGET_ppc)
|
||||
#elif defined(__powerpc__)
|
||||
enum target_cpu target_cpu = CPU_POWERPC;
|
||||
#elif defined(TARGET_arm)
|
||||
#elif defined(__arm__)
|
||||
enum target_cpu target_cpu = CPU_ARM;
|
||||
#elif defined(TARGET_arm64)
|
||||
#elif defined(__aarch64__)
|
||||
enum target_cpu target_cpu = CPU_ARM64;
|
||||
#else
|
||||
#error Unsupported CPU
|
||||
|
|
Loading…
Reference in a new issue