Skip to content
Snippets Groups Projects
Commit 8fe8a219 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Merge branch 'clang_lto' into 'master'

Use the correct command line argument for the clang ipo

Closes #730

See merge request !1263
parents 4b9f5889 300e680c
No related branches found
No related tags found
1 merge request!1263Use the correct command line argument for the clang ipo
......@@ -130,10 +130,8 @@ if test "$enable_ipo" = "yes"; then
], [:] )
AC_MSG_RESULT([added GCC interprocedural optimization support])
elif test "$ax_cv_c_compiler_vendor" = "clang"; then
CFLAGS="$CFLAGS -flto -fuse-ld=gold"
LDFLAGS="$LDFLAGS -XCClinker -fuse-ld=gold"
: ${AR="llvm-ar"}
: ${LD="ld.gold"}
CFLAGS="$CFLAGS -flto=thin"
LDFLAGS="$LDFLAGS -flto=thin"
: ${RANLIB="llvm-ranlib"}
AC_MSG_RESULT([added LLVM interprocedural optimization support])
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment