Commit 0c68155
committed
[llvm-jitlink] Fix llvm-jitlink for LLVM_ENABLE_THREADS=Off.
Commit edca1d9 enabled threaded linking by default in llvm-jitlink, but we
need to handle the case where LLVM is built with -DLLVM_ENABLE_THREADS=Off.
This patch updates the llvm-jitlink tool to switch back to materialization on
the main thread (equivalent to llvm-jitlink -num-threads=0 ...) when LLVM is
built without thread support.1 parent bc87a53 commit 0c68155
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
999 | | - | |
| 999 | + | |
| 1000 | + | |
1000 | 1001 | | |
1001 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
1002 | 1007 | | |
1003 | 1008 | | |
1004 | 1009 | | |
| |||
1628 | 1633 | | |
1629 | 1634 | | |
1630 | 1635 | | |
| 1636 | + | |
1631 | 1637 | | |
1632 | 1638 | | |
1633 | 1639 | | |
1634 | 1640 | | |
1635 | 1641 | | |
1636 | | - | |
| 1642 | + | |
1637 | 1643 | | |
1638 | 1644 | | |
1639 | 1645 | | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
1640 | 1654 | | |
1641 | 1655 | | |
1642 | 1656 | | |
| |||
0 commit comments