Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6ed42ea0
Commit
6ed42ea0
authored
Dec 21, 2015
by
Zachary Ware
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #25827: Add support for ICC to configure
parent
a3c22424
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
0 deletions
+79
-0
.gitignore
.gitignore
+1
-0
.hgignore
.hgignore
+1
-0
Makefile.pre.in
Makefile.pre.in
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
configure
configure
+44
-0
configure.ac
configure.ac
+29
-0
No files found.
.gitignore
View file @
6ed42ea0
...
...
@@ -9,6 +9,7 @@
*.gc??
*.profclang?
*.profraw
*.dyn
Doc/build/
Doc/tools/docutils/
Doc/tools/jinja2/
...
...
.hgignore
View file @
6ed42ea0
...
...
@@ -48,6 +48,7 @@ libpython*.so*
*.gc??
*.profclang?
*.profraw
*.dyn
Lib/distutils/command/*.pdb
Lib/lib2to3/*.pickle
Lib/test/data/*
...
...
Makefile.pre.in
View file @
6ed42ea0
...
...
@@ -1354,6 +1354,7 @@ clean: pycremoval
profile-removal
:
find
.
-name
'*.gc??'
-exec
rm
-f
{}
';'
find
.
-name
'*.profclang?'
-exec
rm
-f
{}
';'
find
.
-name
'*.dyn'
-exec
rm
-f
{}
';'
clobber
:
clean profile-removal
-
rm
-f
$(BUILDPYTHON)
$(PGEN)
$(LIBRARY)
$(LDLIBRARY)
$(DLLLIBRARY)
\
...
...
Misc/NEWS
View file @
6ed42ea0
...
...
@@ -64,6 +64,9 @@ Tests
Build
-----
-
Issue
#
25827
:
Add
support
for
building
with
ICC
to
``
configure
``,
including
a
new
``--
with
-
icc
``
flag
.
-
Issue
#
25696
:
Fix
installation
of
Python
on
UNIX
with
make
-
j9
.
-
Issue
#
25798
:
Update
OS
X
10.5
+
32
-
bit
-
only
installer
to
build
...
...
configure
View file @
6ed42ea0
...
...
@@ -789,6 +789,7 @@ with_universal_archs
with_framework_name
enable_framework
with_gcc
with_icc
with_cxx_main
with_suffix
enable_shared
...
...
@@ -1469,6 +1470,7 @@ Optional Packages:
specify an alternate name of the framework built
with --enable-framework
--without-gcc never use gcc
--with-icc build with icc
--with-cxx-main=<compiler>
compile main() and link python executable with C++
compiler
...
...
@@ -3480,6 +3482,29 @@ fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$without_gcc
"
>
&5
$as_echo
"
$without_gcc
"
>
&6
;
}
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for --with-icc"
>
&5
$as_echo_n
"checking for --with-icc... "
>
&6
;
}
# Check whether --with-icc was given.
if
test
"
${
with_icc
+set
}
"
=
set
;
then
:
withval
=
$with_icc
;
case
$withval
in
no
)
CC
=
${
CC
:-
cc
}
with_icc
=
no
;;
yes
)
CC
=
icc
CXX
=
icpc
with_icc
=
yes
;;
*
)
CC
=
$withval
with_icc
=
$withval
;;
esac
else
with_icc
=
no
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$with_icc
"
>
&5
$as_echo
"
$with_icc
"
>
&6
;
}
# If the user switches compilers, we can't believe the cache
if
test
!
-z
"
$ac_cv_prog_CC
"
-a
!
-z
"
$CC
"
-a
"
$CC
"
!=
"
$ac_cv_prog_CC
"
then
...
...
@@ -6188,6 +6213,13 @@ $as_echo "$CC" >&6; }
;;
esac
# ICC needs -fp-model strict or floats behave badly
case
"
$CC
"
in
*
icc
*
)
BASECFLAGS
=
"
$BASECFLAGS
-fp-model strict"
;;
esac
if
test
"
$Py_DEBUG
"
=
'true'
;
then
:
else
...
...
@@ -6334,6 +6366,12 @@ fi
# Enable PGO flags.
# Extract the first word of "llvm-profdata", so it can be a program name with args.
set
dummy llvm-profdata
;
ac_word
=
$2
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for
$ac_word
"
>
&5
...
...
@@ -6405,6 +6443,12 @@ case $CC in
;;
esac
;;
*
icc
*
)
PGO_PROF_GEN_FLAG
=
"-prof-gen"
PGO_PROF_USE_FLAG
=
"-prof-use"
LLVM_PROF_MERGER
=
"true"
LLVM_PROF_FILE
=
""
;;
esac
...
...
configure.ac
View file @
6ed42ea0
...
...
@@ -573,6 +573,22 @@ AC_ARG_WITH(gcc,
esac])
AC_MSG_RESULT($without_gcc)
AC_MSG_CHECKING(for --with-icc)
AC_ARG_WITH(icc,
AS_HELP_STRING([--with-icc], [build with icc]),
[
case $withval in
no) CC=${CC:-cc}
with_icc=no;;
yes) CC=icc
CXX=icpc
with_icc=yes;;
*) CC=$withval
with_icc=$withval;;
esac], [
with_icc=no])
AC_MSG_RESULT($with_icc)
# If the user switches compilers, we can't believe the cache
if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
then
...
...
@@ -1266,6 +1282,13 @@ yes)
;;
esac
# ICC needs -fp-model strict or floats behave badly
case "$CC" in
*icc*)
BASECFLAGS="$BASECFLAGS -fp-model strict"
;;
esac
if test "$Py_DEBUG" = 'true'; then
:
else
...
...
@@ -1394,6 +1417,12 @@ case $CC in
;;
esac
;;
*icc*)
PGO_PROF_GEN_FLAG="-prof-gen"
PGO_PROF_USE_FLAG="-prof-use"
LLVM_PROF_MERGER="true"
LLVM_PROF_FILE=""
;;
esac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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