mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1280338 - Use tooltool GCC's ld on TSan builds. r=froydnj
Something similar was done in bug 1278718 for ASan builds, because of indirect dependencies on libstdc++ being picked by the linker and leading to linkage failure with the older binutils from the CentOS 6 image we use to do desktop builds.
This commit is contained in:
parent
46e33a611c
commit
2fe5367788
@ -1,5 +1,13 @@
|
||||
[
|
||||
{
|
||||
"version": "gcc 4.8.5 + PR64905",
|
||||
"size": 80160264,
|
||||
"digest": "c1a9dc9da289b8528874d16300b9d13a997cec99195bb0bc46ff665216d8535d6d6cb5af6b4b1f2749af6815dab12e703fdb3849014e5c23a70eff351a0baf4e",
|
||||
"algorithm": "sha512",
|
||||
"filename": "gcc.tar.xz",
|
||||
"unpack": true
|
||||
},
|
||||
{
|
||||
"version": "clang 3.6.2/r241773",
|
||||
"size": 89690541,
|
||||
"digest": "470d258d9785a120fcba65eee90daa632a42affa0f97f57d70fc8285bd76bcc27d4d0d70b6c37577ab271a04c843b6269425391a8d6df1967718dba26dd3a73d",
|
||||
|
@ -12,6 +12,12 @@ export CFLAGS="-fsanitize=thread"
|
||||
export CXXFLAGS="-fsanitize=thread"
|
||||
export LDFLAGS="-fsanitize=thread"
|
||||
|
||||
# Use a newer binutils, from the tooltool gcc package, if it's there
|
||||
if [ -e "$topsrcdir/gcc/bin/ld" ]; then
|
||||
export CC="$CC -B $topsrcdir/gcc/bin"
|
||||
export CXX="$CXX -B $topsrcdir/gcc/bin"
|
||||
fi
|
||||
|
||||
# Enable TSan specific code and build workarounds
|
||||
ac_add_options --enable-thread-sanitizer
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user