summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-10-21 00:36:28 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-10-21 00:36:28 +0000
commit97192421e16b46c7c9035cbef7900938ff219aff (patch)
treedf4d0cb862da98d058fe8aaf5e551c53ef7c5ee7 /llvm/cmake/modules
parentdf9515324d7a759d9affa6f22e9cf80fe9cb10e6 (diff)
downloadbcm5719-llvm-97192421e16b46c7c9035cbef7900938ff219aff.tar.gz
bcm5719-llvm-97192421e16b46c7c9035cbef7900938ff219aff.zip
Teach lit to filter the host LDFLAGS down from the build system and into
the CGO build environment. This lets things like -rpath propagate down to the C++ code that is built along side the Go bindings when testing them. Patch by Peter Collingbourne, and verified that it works by me. llvm-svn: 220252
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 127d5389d19..81b21fbfb6f 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -657,6 +657,7 @@ function(configure_lit_site_cfg input output)
set(HOST_CC "${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}")
set(HOST_CXX "${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1}")
+ set(HOST_LDFLAGS "${CMAKE_EXE_LINKER_FLAGS}")
configure_file(${input} ${output} @ONLY)
endfunction()
OpenPOWER on IntegriCloud