forked from premiere/premiere-libtorrent
fix python build with CC/CXX environment
This commit is contained in:
parent
5d0322d393
commit
a39f3714b2
|
@ -1,3 +1,4 @@
|
|||
* fix python build with CC/CXX environment
|
||||
* add trackers from add_torrent_params/magnet links to separate tiers
|
||||
* fix resumedata check issue with files with priority 0
|
||||
* deprecated mmap_cache feature
|
||||
|
|
|
@ -116,6 +116,13 @@ else:
|
|||
extra_link = flags.parse(ldflags)
|
||||
extra_compile = flags.parse(extra_cmd)
|
||||
|
||||
# for some reason distutils uses the CC environment variable to determine
|
||||
# the compiler to use for C++
|
||||
if 'CXX' in os.environ:
|
||||
os.environ['CC'] = os.environ['CXX']
|
||||
if 'CXXFLAGS' in os.environ:
|
||||
os.environ['CFLAGS'] = os.environ['CXXFLAGS']
|
||||
|
||||
ext = [Extension('libtorrent',
|
||||
sources = source_list,
|
||||
language='c++',
|
||||
|
|
Loading…
Reference in New Issue