diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-15 06:51:37 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-15 06:51:37 +0000 |
commit | b63a3ab5bfc56e4f9264cd9fe3c0f104be4b547b (patch) | |
tree | 060ab48044f26ba008e33e26ec21a2086b3f3358 | |
parent | d4d6a1aa9b74cec65ac266c2007fc172bce3417d (diff) | |
download | bcm5719-llvm-b63a3ab5bfc56e4f9264cd9fe3c0f104be4b547b.tar.gz bcm5719-llvm-b63a3ab5bfc56e4f9264cd9fe3c0f104be4b547b.zip |
tsan: respect LDFLAGS when build Go test
Reported at:
https://bugs.llvm.org/show_bug.cgi?id=27597
Some platforms need additional LDFLAGS when building the test
(e.g. -no-pie). Respect LDFLAGS.
llvm-svn: 313347
-rwxr-xr-x | compiler-rt/lib/tsan/go/buildgo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh index 9d4d7d7fc6b..c27b72afe86 100755 --- a/compiler-rt/lib/tsan/go/buildgo.sh +++ b/compiler-rt/lib/tsan/go/buildgo.sh @@ -127,7 +127,7 @@ if [ "$SILENT" != "1" ]; then fi $CC $DIR/gotsan.cc -c -o $DIR/race_$SUFFIX.syso $FLAGS $CFLAGS -$CC $OSCFLAGS test.c $DIR/race_$SUFFIX.syso -m64 -g -o $DIR/test $OSLDFLAGS +$CC $OSCFLAGS test.c $DIR/race_$SUFFIX.syso -m64 -g -o $DIR/test $OSLDFLAGS $LDFLAGS export GORACE="exitcode=0 atexit_sleep_ms=0" if [ "$SILENT" != "1" ]; then |