equal
deleted
inserted
replaced
1378 |
1378 |
1379 env['HOME'] = pwd.getpwuid(os.getuid()).pw_dir |
1379 env['HOME'] = pwd.getpwuid(os.getuid()).pw_dir |
1380 |
1380 |
1381 cargocmd = ['cargo', 'rustc', '--release'] |
1381 cargocmd = ['cargo', 'rustc', '--release'] |
1382 |
1382 |
1383 feature_flags = ['python3'] |
|
1384 |
|
1385 cargocmd.append('--no-default-features') |
|
1386 |
|
1387 rust_features = env.get("HG_RUST_FEATURES") |
1383 rust_features = env.get("HG_RUST_FEATURES") |
1388 if rust_features: |
1384 if rust_features: |
1389 feature_flags.append(rust_features) |
1385 cargocmd.extend(('--features', rust_features)) |
1390 |
|
1391 cargocmd.extend(('--features', " ".join(feature_flags))) |
|
1392 |
1386 |
1393 cargocmd.append('--') |
1387 cargocmd.append('--') |
1394 if sys.platform == 'darwin': |
1388 if sys.platform == 'darwin': |
1395 cargocmd.extend( |
1389 cargocmd.extend( |
1396 ("-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup") |
1390 ("-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup") |