File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -190,10 +190,12 @@ let cc1_capture clang_cmd =
190
190
191
191
192
192
let capture clang_cmd =
193
- if ClangCommand. can_attach_ast_exporter clang_cmd then
193
+ if ClangCommand. can_attach_ast_exporter clang_cmd then (
194
194
(* this command compiles some code; replace the invocation of clang with our own clang and
195
195
plugin *)
196
- cc1_capture clang_cmd
196
+ cc1_capture clang_cmd ; (* to create AST *)
197
+ run_clang clang_cmd Utils. echo_in ; (* to run clang with original optimizer *)
198
+ () )
197
199
else if Option. exists Config. buck_mode ~f: BuckMode. is_clang_compilation_db then
198
200
(* when running with buck's compilation-database, skip commands where frontend cannot be
199
201
attached, as they may cause unnecessary compilation errors *)
You can’t perform that action at this time.
0 commit comments