mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-01 01:30:36 +00:00
CMake: Support for building 32 bits shared libraries on 64 bits GNU
systems. BUILD_32_BITS option renamed to LLVM_BUILD_32_BITS. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59568 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06da2bc19f
commit
6307b9440a
@ -118,14 +118,14 @@ set(LLVM_PLO_FLAGS "" CACHE
|
|||||||
|
|
||||||
if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
|
if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
|
||||||
# TODO: support other platforms and toolchains.
|
# TODO: support other platforms and toolchains.
|
||||||
option(BUILD_32_BITS "Build 32 bits executables and libraries." OFF)
|
option(LLVM_BUILD_32_BITS "Build 32 bits executables and libraries." OFF)
|
||||||
if( BUILD_32_BITS )
|
if( LLVM_BUILD_32_BITS )
|
||||||
message(STATUS "Building 32 bits executables and libraries.")
|
message(STATUS "Building 32 bits executables and libraries.")
|
||||||
add_definitions( -m32 )
|
add_definitions( -m32 )
|
||||||
set( CMAKE_EXE_LINKER_FLAGS "-m32 ${CMAKE_EXE_LINKER_FLAGS}" )
|
list(APPEND CMAKE_EXE_LINKER_FLAGS -m32)
|
||||||
set( CMAKE_LINK_LIBRARY_FLAG "-m32 ${CMAKE_LINK_LIBRARY_FLAG}" )
|
list(APPEND CMAKE_SHARED_LINKER_FLAGS -m32)
|
||||||
set( LLVM_PLO_FLAGS -melf_i386 ${LLVM_PLO_FLAGS} )
|
set( LLVM_PLO_FLAGS -melf_i386 ${LLVM_PLO_FLAGS} )
|
||||||
endif( BUILD_32_BITS )
|
endif( LLVM_BUILD_32_BITS )
|
||||||
endif( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
|
endif( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
|
||||||
|
|
||||||
if( MSVC )
|
if( MSVC )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user