Skip to content

Commit e027f38

Browse files
committed
split linker code into a separate file. NFC
This change moves more than half of the code in emcc.py which is used only for linking into its own file (link.py). This makes reasoning about the code easier and paves the way for a fast path then only compiling (e.g. this code shouldn't even need to be imported when only compiling). See #20577.
1 parent 165c1a3 commit e027f38

File tree

4 files changed

+3039
-2992
lines changed

4 files changed

+3039
-2992
lines changed

em++.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
import sys
88
import emcc
9+
from tools import shared
910

10-
emcc.run_via_emxx = True
11+
shared.run_via_emxx = True
1112

1213
if __name__ == '__main__':
1314
try:

0 commit comments

Comments
 (0)