michael@0: dnl This Source Code Form is subject to the terms of the Mozilla Public michael@0: dnl License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: dnl file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: dnl check if the build is using lto. This is really primitive and only detects llvm based michael@0: dnl compilers right now. michael@0: AC_DEFUN([MOZ_DOING_LTO], michael@0: [ michael@0: cat > conftest.c </dev/null 2>&1; then michael@0: if grep '^target triple =' conftest.s; then michael@0: $1=yes michael@0: fi michael@0: fi michael@0: rm -f conftest.[cs] michael@0: ])