Skip to content

Commit

Permalink
Add support for building LLVM on FreeBSD 9.2
Browse files Browse the repository at this point in the history
llvm-svn: 205847
  • Loading branch information
v-kutuzov committed Apr 9, 2014
1 parent f9a0906 commit 6bd3229
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llvm/cmake/config-ix.cmake
Original file line number Diff line number Diff line change
@@ -17,6 +17,11 @@ if( UNIX AND NOT BEOS )
# Used by check_symbol_exists:
set(CMAKE_REQUIRED_LIBRARIES m)
endif()
# x86_64 FreeBSD 9.2 requires libcxxrt to be specified explicitly.
if( CMAKE_SYSTEM MATCHES "FreeBSD-9.2-RELEASE" AND
CMAKE_SIZEOF_VOID_P EQUAL 8 )
list(APPEND CMAKE_REQUIRED_LIBRARIES "cxxrt")
endif()

# Helper macros and functions
macro(add_cxx_include result files)

0 comments on commit 6bd3229

Please sign in to comment.