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
This commit is contained in:
parent
d4d6a1aa9b
commit
b63a3ab5bf
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue