diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-19 00:10:39 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2008-11-19 00:10:39 +0000 |
commit | 325814957e01e70ce10e9fa284c2aacefc7c4d34 (patch) | |
tree | b5a2d09fab5d8fbc10df25cd99d83e9f904e11e6 | |
parent | eb87975384fd1bbabc4911f293f93e75e6793a9a (diff) | |
download | bcm5719-llvm-325814957e01e70ce10e9fa284c2aacefc7c4d34.tar.gz bcm5719-llvm-325814957e01e70ce10e9fa284c2aacefc7c4d34.zip |
CMake: Support for building 32 bits shared libraries on 64 bits GNU
systems. BUILD_32_BITS option renamed to LLVM_BUILD_32_BITS.
llvm-svn: 59568
-rw-r--r-- | llvm/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 327a6935c56..940326e732d 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -118,14 +118,14 @@ set(LLVM_PLO_FLAGS "" CACHE if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 ) # TODO: support other platforms and toolchains. - option(BUILD_32_BITS "Build 32 bits executables and libraries." OFF) - if( BUILD_32_BITS ) + option(LLVM_BUILD_32_BITS "Build 32 bits executables and libraries." OFF) + if( LLVM_BUILD_32_BITS ) message(STATUS "Building 32 bits executables and libraries.") add_definitions( -m32 ) - set( CMAKE_EXE_LINKER_FLAGS "-m32 ${CMAKE_EXE_LINKER_FLAGS}" ) - set( CMAKE_LINK_LIBRARY_FLAG "-m32 ${CMAKE_LINK_LIBRARY_FLAG}" ) + list(APPEND CMAKE_EXE_LINKER_FLAGS -m32) + list(APPEND CMAKE_SHARED_LINKER_FLAGS -m32) 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 ) if( MSVC ) |