Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
5ec0c105
Commit
5ec0c105
authored
Feb 24, 2016
by
Peter W. Draper
Browse files
Add interprocedural support for Intel compilers/linkers
parent
5cd2942e
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
5ec0c105
# 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment