Commit 0b14bdc
committed
[swiftinterface] Handle target variants the same as targets
Based on preliminary work from @rhow.
The compilation arguments for a swiftinterface file are preprocessed to
modify the `-target` argument to match the preferred target (which comes
from the command line) in cases in which the sub-architecture differs,
but it is compatible (for example using `arm64e` when `arm64` is being
compiled), but this was not done for the target variant, which ended up
with mismatches on the sub-architecture used by the target and target
variant, which fails an assert in assert toolchains.1 parent 4db04f9 commit 0b14bdc
File tree
3 files changed
+45
-22
lines changed- include/swift/Serialization
- lib
- Frontend
- Serialization
3 files changed
+45
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
| 575 | + | |
575 | 576 | | |
576 | 577 | | |
577 | 578 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| |||
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
1516 | | - | |
| 1516 | + | |
| 1517 | + | |
1517 | 1518 | | |
1518 | 1519 | | |
1519 | 1520 | | |
| |||
1537 | 1538 | | |
1538 | 1539 | | |
1539 | 1540 | | |
1540 | | - | |
| 1541 | + | |
| 1542 | + | |
1541 | 1543 | | |
1542 | 1544 | | |
1543 | 1545 | | |
| |||
1592 | 1594 | | |
1593 | 1595 | | |
1594 | 1596 | | |
1595 | | - | |
| 1597 | + | |
1596 | 1598 | | |
1597 | 1599 | | |
1598 | 1600 | | |
| |||
1613 | 1615 | | |
1614 | 1616 | | |
1615 | 1617 | | |
1616 | | - | |
| 1618 | + | |
1617 | 1619 | | |
1618 | 1620 | | |
1619 | 1621 | | |
1620 | 1622 | | |
1621 | 1623 | | |
1622 | 1624 | | |
1623 | 1625 | | |
1624 | | - | |
| 1626 | + | |
| 1627 | + | |
1625 | 1628 | | |
1626 | 1629 | | |
1627 | 1630 | | |
| |||
1670 | 1673 | | |
1671 | 1674 | | |
1672 | 1675 | | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
1673 | 1685 | | |
1674 | 1686 | | |
1675 | 1687 | | |
| |||
1835 | 1847 | | |
1836 | 1848 | | |
1837 | 1849 | | |
1838 | | - | |
| 1850 | + | |
| 1851 | + | |
1839 | 1852 | | |
1840 | 1853 | | |
1841 | 1854 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1379 | 1379 | | |
1380 | 1380 | | |
1381 | 1381 | | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
1382 | 1390 | | |
1383 | 1391 | | |
1384 | 1392 | | |
1385 | | - | |
| 1393 | + | |
| 1394 | + | |
1386 | 1395 | | |
1387 | 1396 | | |
1388 | 1397 | | |
| |||
1395 | 1404 | | |
1396 | 1405 | | |
1397 | 1406 | | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1401 | 1419 | | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | 1420 | | |
1412 | 1421 | | |
1413 | 1422 | | |
| |||
0 commit comments