Teach lit to filter the host LDFLAGS down from the build system and into
[oota-llvm.git] / test / Bindings / Go / go.test
index ec860ba4acc68882ecf18573b7cb3e4bbe90e37a..ff0cf90e1d8ff3797ab845172c30c944dce99d88 100644 (file)
@@ -2,7 +2,7 @@
 ; RUN: env CGO_CPPFLAGS="$(llvm-config --cppflags)" \
 ; RUN:     CGO_CXXFLAGS=-std=c++11 \
 ; RUN:     CGO_LDFLAGS="$(llvm-config --ldflags --libs --system-libs \
-; RUN:                                $(../build.sh --print-components))" \
+; RUN:                                $(../build.sh --print-components)) $CGO_LDFLAGS" \
 ; RUN:     %go test -tags byollvm .
 
 ; REQUIRES: shell