We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c3c787 commit c6d56fcCopy full SHA for c6d56fc
linker_interceptor.py
@@ -17,6 +17,7 @@
17
18
out_args = []
19
shareds = []
20
+sources = []
21
search = []
22
rpath = []
23
@@ -69,12 +70,18 @@ def process_args(args):
69
70
process_args(args)
71
72
if is_linking_qemu:
73
+ with open("compile_commands.json", 'r') as f:
74
+ compile_commands = json.load(f)
75
+ for entry in compile_commands:
76
+ sources.append(entry["file"])
77
+
78
with open(OUT, 'w') as f:
79
json.dump({
80
'cmd': out_args,
81
'libs': shareds,
82
'search': search,
83
'rpath': rpath,
84
+ 'sources': sources,
85
}, f, indent=2)
86
87
r = subprocess.run([cc] + args)
0 commit comments