Commit 5ec0c105 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Add interprocedural support for Intel compilers/linkers

parent 5cd2942e
# This file is part of SWIFT.
# Copyright (C) 2012 pedro.gonnet@durham.ac.uk.
# 2016 p.w.draper@durham.ac.uk.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -180,6 +181,27 @@ if test "$enable_san" = "yes"; then
fi
fi
# Intel compiler interprocedural optimization support. Needs special
# handling for linking and archiving as well as compilation.
AC_ARG_ENABLE([ipo],
[AS_HELP_STRING([--enable-ipo],
[Enable Intel interprocedural optimization @<:@no/yes@:>@]
)],
[enable_ipo="$enableval"],
[enable_ipo="no"]
)
if test "$enable_ipo" = "yes"; then
if test "$ax_cv_c_compiler_vendor" = "intel"; then
CFLAGS="$CFLAGS -ip -ipo"
LDFLAGS="-ipo"
AR="xiar"
LD="xild"
else
AC_MSG_WARN([Compiler does not support interprocedural optimization])
fi
fi
# Autoconf stuff.
AC_PROG_INSTALL
AC_PROG_MAKE_SET
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment