Skip to content

Commit 58146d5

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 emscripten-core#20577.
1 parent 94b36c0 commit 58146d5

File tree

4 files changed

+3032
-3003
lines changed

4 files changed

+3032
-3003
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)