Show More
@@ -1195,13 +1195,14 b' class RustExtension(Extension):' | |||||
1195 | import pwd |
|
1195 | import pwd | |
1196 | env['HOME'] = pwd.getpwuid(os.getuid()).pw_dir |
|
1196 | env['HOME'] = pwd.getpwuid(os.getuid()).pw_dir | |
1197 |
|
1197 | |||
1198 |
cargocmd = ['cargo', ' |
|
1198 | cargocmd = ['cargo', 'rustc', '-vv', '--release'] | |
1199 | if sys.version_info[0] == 3 and self.py3_features is not None: |
|
1199 | if sys.version_info[0] == 3 and self.py3_features is not None: | |
1200 | cargocmd.extend(('--features', self.py3_features, |
|
1200 | cargocmd.extend(('--features', self.py3_features, | |
1201 | '--no-default-features')) |
|
1201 | '--no-default-features')) | |
|
1202 | cargocmd.append('--') | |||
1202 | if sys.platform == 'darwin': |
|
1203 | if sys.platform == 'darwin': | |
1203 |
|
|
1204 | cargocmd.extend(("-C", "link-arg=-undefined", | |
1204 |
|
|
1205 | "-C", "link-arg=dynamic_lookup")) | |
1205 | try: |
|
1206 | try: | |
1206 | subprocess.check_call(cargocmd, env=env, cwd=self.rustsrcdir) |
|
1207 | subprocess.check_call(cargocmd, env=env, cwd=self.rustsrcdir) | |
1207 | except OSError as exc: |
|
1208 | except OSError as exc: |
General Comments 0
You need to be logged in to leave comments.
Login now