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
115930d9
Commit
115930d9
authored
Oct 08, 2006
by
Ronald Oussoren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of r52236
parent
bf4358a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
Lib/distutils/unixccompiler.py
Lib/distutils/unixccompiler.py
+16
-0
No files found.
Lib/distutils/unixccompiler.py
View file @
115930d9
...
...
@@ -82,6 +82,22 @@ def _darwin_compiler_fixup(compiler_so, cc_args):
except
ValueError
:
pass
# Check if the SDK that is used during compilation actually exists,
# the universal build requires the usage of a universal SDK and not all
# users have that installed by default.
sysroot
=
None
if
'-isysroot'
in
cc_args
:
idx
=
cc_args
.
index
(
'-isysroot'
)
sysroot
=
cc_args
[
idx
+
1
]
elif
'-isysroot'
in
compiler_so
:
idx
=
compiler_so
.
index
(
'-isysroot'
)
sysroot
=
compiler_so
[
idx
+
1
]
if
sysroot
and
not
os
.
path
.
isdir
(
sysroot
):
log
.
warn
(
"Compiling with an SDK that doesn't seem to exist: %s"
,
sysroot
)
log
.
warn
(
"Please check your Xcode installation"
)
return
compiler_so
class
UnixCCompiler
(
CCompiler
):
...
...
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