mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
c5caa62fdf
Build slaves on automation are based on Centos 6, which doesn't have a recent enough version of libstdc++ for our new requirements. But since we're building with a recent GCC or clang with its own libstdc++, we do have such a libstdc++ available somewhere, and the compiler picks it when invoking the linker. Problems start happening when we execute some of the built programs during the build, like host tools (e.g. nsinstall), or target programs (xpcshell, during packaging). In that case, we need the compiler's libstdc++ to be used. Which required adding the GCC or clang library directory to LD_LIBRARY_PATH. Unconveniently enough, the clang 3.5 tooltool package we're using for ASAN builds until we can update to at least 3.8 (bug 1278718) doesn't contain libstdc++.so. So for those builds, pull the GCC package from tooltool as well, and pick libstdc++ from there.
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
if [ "x$IS_NIGHTLY" = "xyes" ]; then
|
|
# Some nightlies (eg: Mulet) don't want these set.
|
|
MOZ_AUTOMATION_UPLOAD_SYMBOLS=${MOZ_AUTOMATION_UPLOAD_SYMBOLS-1}
|
|
MOZ_AUTOMATION_UPDATE_PACKAGING=${MOZ_AUTOMATION_UPDATE_PACKAGING-1}
|
|
MOZ_AUTOMATION_SDK=${MOZ_AUTOMATION_SDK-1}
|
|
fi
|
|
|
|
. "$topsrcdir/build/mozconfig.common"
|
|
|
|
TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
|
|
|
|
# some b2g desktop builds still happen on i686 machines, and the tooltool
|
|
# toolchain is x86_64 only.
|
|
# We also deal with valgrind builds here, they don't use tooltool manifests at
|
|
# all yet.
|
|
if [ -z "$no_tooltool" ]
|
|
then
|
|
CC="$TOOLTOOL_DIR/gcc/bin/gcc"
|
|
CXX="$TOOLTOOL_DIR/gcc/bin/g++"
|
|
|
|
# We want to make sure we use binutils and other binaries in the tooltool
|
|
# package.
|
|
mk_add_options PATH="$TOOLTOOL_DIR/gcc/bin:$PATH"
|
|
else
|
|
CC="/tools/gcc-4.7.3-0moz1/bin/gcc"
|
|
CXX="/tools/gcc-4.7.3-0moz1/bin/g++"
|
|
fi
|
|
|
|
ac_add_options --enable-elf-hack
|
|
|
|
. "$topsrcdir/build/unix/mozconfig.stdcxx"
|
|
|
|
# PKG_CONFIG_LIBDIR is appropriately overridden in mozconfig.linux32
|
|
export PKG_CONFIG_LIBDIR=/usr/lib64/pkgconfig:/usr/share/pkgconfig
|
|
|
|
export SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE=/builds/crash-stats-api.token
|
|
|
|
. "$topsrcdir/build/unix/mozconfig.gtk"
|