Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rschoene committed Aug 21, 2024
1 parent c4ac73f commit 08fabaf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ int AArch64DefaultPayload::compilePayload(

Builder cb(&code);
// TODO add Logger cb.setLogger

FILE* f = fopen("Builder.log","W");
FileLogger fl = FileLogger(f);
cb.setLogger(fl);

cb.addDiagnosticOptions(
asmjit::DiagnosticOptions::kValidateAssembler |
asmjit::DiagnosticOptions::kValidateIntermediate );
Expand Down

0 comments on commit 08fabaf

Please sign in to comment.