llvm.org GIT mirror llvm / 436633e
Don't export symbols in every binary on linux. On freebsd this makes sure that symbols are exported on the binaries that need them. The net result is that we should get symbols in the binaries that need them on every platform. On linux x86-64 this reduces the size of the bin directory from 262MB to 250MB. Patch by Stephen Checkoway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178725 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
4 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
389389 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include llvm/Support/Solaris.h")
390390 endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
391391
392 # Make sure we don't get -rdynamic in every binary. For those that need it,
393 # use set_target_properties(target PROPERTIES ENABLE_EXPORTS 1)
394 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
395
392396 include(AddLLVM)
393397 include(TableGen)
394398
1111 ToolRunner.cpp
1212 bugpoint.cpp
1313 )
14 set_target_properties(bugpoint PROPERTIES ENABLE_EXPORTS 1)
55 PrintSCC.cpp
66 opt.cpp
77 )
8 set_target_properties(opt PROPERTIES ENABLE_EXPORTS 1)
5151 ${JITTestsSources}
5252 )
5353
54 if(MINGW OR CYGWIN)
55 set_property(TARGET JITTests PROPERTY LINK_FLAGS -Wl,--export-all-symbols)
56 endif()
54 set_target_properties(JITTests PROPERTIES ENABLE_EXPORTS 1)