Skip to content

Commit

Permalink
Fix for upstream issues with compiler path (#866)
Browse files Browse the repository at this point in the history
* fix for Issue #860

* update docstring and implementation to #866
  • Loading branch information
tcaduser committed Sep 23, 2023
1 parent 10e9785 commit 829de94
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions kivy_ios/toolchain.py
Expand Up @@ -209,8 +209,18 @@ def get_env(self):
'include_file_mtime,include_file_ctime,file_stat_matches'))

if not self._ccsh:
self._ccsh = tempfile.NamedTemporaryFile()
self._cxxsh = tempfile.NamedTemporaryFile()
def noicctempfile():
'''
reported issue where C Python has issues with 'icc' in the compiler path
https://github.com/python/cpython/issues/96398
https://github.com/python/cpython/pull/96399
'''
while 'icc' in (x := tempfile.NamedTemporaryFile()).name:
pass
return x

self._ccsh = noicctempfile()
self._cxxsh = noicctempfile()
sh.chmod("+x", self._ccsh.name)
sh.chmod("+x", self._cxxsh.name)
self._ccsh.write(b'#!/bin/sh\n')
Expand Down

0 comments on commit 829de94

Please sign in to comment.