mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
16 lines
381 B
Plaintext
16 lines
381 B
Plaintext
dnl check if the build is using lto. This is really primitive and only detects llvm based
|
|
dnl compilers right now.
|
|
AC_DEFUN(MOZ_DOING_LTO,
|
|
[
|
|
cat > conftest.c <<EOF
|
|
int foo = 1;
|
|
EOF
|
|
$1=no
|
|
if ${CC-cc} ${CFLAGS} -S conftest.c -o conftest.s >/dev/null 2>&1; then
|
|
if grep '^target triple =' conftest.s; then
|
|
$1=yes
|
|
fi
|
|
fi
|
|
rm -f conftest.[cs]
|
|
])
|